I'm developing a restful api with nodejs and mongodb. And I am creating an endpoint for user registration, but I would like to send a photo at the time of registration.
Which of the three solutions would be best?
- An S3 * amazon, I send a base64 saved in S3 * return to url;
- I convert base64 received and saved to my own server;
- I send the direct base64 from the device to S3 * and send only the url to my api.
S3 = Amazon Simple Storage Service