DEV Community

ADEKOLA Abdwahab
ADEKOLA Abdwahab

Posted on

How would you handle image upload?

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?

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay