How would you handle image upload?
ADEKOLA Abdwahab

ADEKOLA Abdwahab @codarbind

About: Coding solutions one semicolon at a time. @wahabind tweets

Location:
Nigeria
Joined:
Apr 10, 2021

How would you handle image upload?

Publish Date: Mar 21 '24
0 0

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?

Comments 0 total

    Add comment