arrow_back
Back to Tickets
Edit Trouble Ticket
Update the ticket information below
Date Initiated
*
Status
*
Open
Pending
Completed
Terminated
Creator
*
maxi
Priority
*
1
Urgent
Select urgency...
Urgent
Not Urgent
Important
Select importance...
Important
Not Important
Project Name
*
customer feedback zfrika
Problem
*
user can not upload picture that a larger than 1mb.
Question
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.
Root Cause
Notes
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.
Strategy
Helpful People
Helpful Links
Diagram
Previous Steps
Next Steps
update nginx file. updated the uploadprofilepicture.ejs to notify the user when the file exceeds 7MB . so they dont just get a crash error.
Solution
Insight
Date Resolved
save
Update Ticket
Cancel