At my website, I have an input
element with type file
that is being utilized for camera capture on mobile devices. The issue arises when attempting to transmit the image data to the server as I am unsure of the appropriate datatypes to employ in this scenario. Despite using the FileReader
API to convert the data into a string, I consistently encounter a 413 (Request Too Large) error.
My ultimate goal is simply to enable users to take a picture, send it to the server for processing and saving EXIF data, and then receive the processed data back. While I understand how to access EXIF data on the server and capture images on the client side, I am struggling to effectively transfer the captured image data to the server.
It's worth noting that the server operates on C#.
I appreciate any assistance you can provide. Thank you.