user can not upload picture that a larger than 1mb.
maxi
1
customer feedback zfrika
Nota ble to upload profile picture -Max. H. Drag and drop doesnt work . D Firefox. + Safari. Firefox worked with photo upload. Firefox Not able to view png. Can it be the file size. 1MB is too big to uploading picture. Not a png issue. Safari I get this error. If the file try to upload . The string did not match the expected pattern. In Firefox I get a different error. File size over 1mb does not load.
To solve the 413 Request Entity Too Large error, you need to add the client_max_body_size directive to your server block. In Nginx, the default limit is only 1MB. Since your Node.js code allows up to 14MB, Nginx is blocking the request before it even reaches your application.
update nginx file. updated the uploadprofilepicture.ejs to notify the user when the file exceeds 7MB . so they dont just get a crash error.