You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
iOS - Profile - Error message when uploading a photo using camera #6628
Select settings by clicking the avatar at the top right of the menu
Select Profile
Tap the camera icon on the avatar
From the pop up menu select Upload photo
Choose Take photo
Take a random image and upload
Expected Result:
Image would upload with no issues
Actual Result:
Error pop up each time and unable to upload image taken with error message "Image upload failed “The selected image exceeds the maximum upload size of 3MB”"
When you check the image size, it it actually less than 3MB
Going to unassign for now since I'm running into issues with Xcode on dev. I'm assuming this can be worked on externally as long as there aren't any existing issues with our current file upload API in Web-E.
It looks like we set the max value for the upload here, which was added in this PR. When testing, it looks like the values for taking a photo with the front camera and back camera were both over 3MB, here are those values (respectively):
Asked in slack here to confirm this value is ok to update to 6MB, otherwise we'll need to look into another fix for this. This can likely be external, but waiting for confirmation before updating.
Activity
MelvinBot commentedon Dec 7, 2021
Triggered auto assignment to @nickmurray47 (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.nickmurray47 commentedon Dec 8, 2021
Going to unassign for now since I'm running into issues with Xcode on dev. I'm assuming this can be worked on externally as long as there aren't any existing issues with our current file upload API in Web-E.
akshayasalvi commentedon Dec 14, 2021
I had reported this earlier: #6554 and it was closed based on this #6554 (comment)
MelvinBot commentedon Dec 14, 2021
Eep! 4 days overdue now. Issues have feelings too...
MelvinBot commentedon Dec 16, 2021
6 days overdue. This is scarier than being forced to listen to Vogon poetry!
MelvinBot commentedon Dec 20, 2021
10 days overdue. Is anyone even seeing these? Hello?
Jag96 commentedon Dec 21, 2021
It looks like we set the max value for the upload here, which was added in this PR. When testing, it looks like the values for taking a photo with the front camera and back camera were both over 3MB, here are those values (respectively):
Asked in slack here to confirm this value is ok to update to 6MB, otherwise we'll need to look into another fix for this. This can likely be external, but waiting for confirmation before updating.
mananjadhav commentedon Dec 21, 2021
Proposal if made external
This is just a small config change. Need to update the value for
CONST.AVATAR_MAX_ATTACHMENT_SIZEas6291456.I've checked that it successfully uploads and there isn't any error thrown from the API.
Jag96 commentedon Dec 21, 2021
Already had the branch up for this one so just made the PR myself