apache / cordova-plugin-file-transfer

Apache Cordova File Transfer Plugin
https://cordova.apache.org/
Apache License 2.0
595 stars 888 forks source link

Error 413: FileTransferError request entity too large #233

Closed kirstenfrager closed 4 years ago

kirstenfrager commented 5 years ago

Specifically on iOS, I am getting a 413 error saying that the request entity is too large when I try and send a picture from my phone taken via camera. Depending on the image (obviously the size) it shows me this error, works at other times.

Has anyone experienced this and the best way to approach it?

Is there any way to compress the image file before uploading it with fileTransfer?

Any help or guidance would be appreciated. Thanks

aurghyadip commented 4 years ago

I am having the same problem when capturing a photo via camera. I'm even working with a photo of size 180x320 pixels. Also, I'm converting it to Base64 and sending as a string. Receiving this error when sending the Base64 string.

kirstenfrager commented 4 years ago

@aurghyadip we managed to fix this issue as the error was coming from our own server. we had put a size limit on that side which was throwing this issue. taking that limitation off, it fixed the error as well.

will close this issue I had, as was not related to plugin