How would you handle image upload?
ADEKOLA Abdwahab
Posted on March 21, 2024
User uploads profile picture.
Images are converted into URLs via third party asset storage.
Backend handles the conversion.
Which of the scenarios below would you adopt and why?
A. Frontend should call convertImageToUrl endpoint, then call updateprofilepicture endpoint with the image url.
B. Frontend should call updateprofilepicture endpoint with the raw image - so backend handles the conversion to url in that endpoint implementation.
What are your reasons?
💖 💪 🙅 🚩
ADEKOLA Abdwahab
Posted on March 21, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.