I am trying to upload files using the FileReference class. Files >2MB all work correctly but files <2MB cause this error:
\"java.io.IOException: Co
@Vladimir:
I have used an http sniffer to check the post request and it is sending the entire file and the post request format is correct. I have tried many different files (.jpg, .mp3 etc) that are <2MB and none are working.
The maximum post size is set to 1.5GB.
Here is what the post request is:
------------cH2ae0ei4ae0cH2ae0Ef1KM7gL6GI3
Content-Disposition: form-data; name="Filename"
IMG0001.jpg
------------cH2ae0ei4ae0cH2ae0Ef1KM7gL6GI3
Content-Disposition: form-data; name="Filedata"; filename="IMG0001.jpg"
Content-Type: application/octet-stream
------------cH2ae0ei4ae0cH2ae0Ef1KM7gL6GI3
Content-Disposition: form-data; name="Upload"
Submit Query
------------cH2ae0ei4ae0cH2ae0Ef1KM7gL6GI3--
I have confirmed that this is a server side issue as I tested the servlet with a regular html form and I get the same results.
Any other ideas?