Has anyone been able to get camera pictures uploaded directly from mobile devices, without having to select a file from explorer/gallery, am facing issues when trying to upload after clicking pictures.
Server Type: NodeJS
Has anyone been able to get camera pictures uploaded directly from mobile devices, without having to select a file from explorer/gallery, am facing issues when trying to upload after clicking pictures.
Server Type: NodeJS
I have done this many times with node.js model without any problems, perhaps a coding issue?
Well you can check the error online:
https://www.cyberciti.biz/faq/linux-unix-bsd-nginx-413-request-entity-too-large/
It was the file size. reducing the quantity in camera settings solved the issue.
looks like heavy files like in my case 3MB and above cause this.
Hi @Roney_Dsilva,
What is the complete process to do (i assume you’re using capacitor)?
I can’t find the solution how to upload the file once picture is taken.
Many thanks
Sylvain
In my case, the nginx config had the filesize limit set to 3Mb via the directive client_max_body_size 3M
;
I didn’t use the capacitor, instead, I later moved the Image upload functionality via Cropper JS custom app which cropped and resized the image as well. So the issue of heavy-sized images was also rectified there as Cropper took care of it.
However if your Intend to use capacitor, here is the tutorial on same
My trouble is how to set the input type file value with the flow data path…
so I can POST my file data to my SC.
I’m OK with the tuto you send me and able to reproduce.
I’m missing a minor step…