Hi, I start writing an app that needs to handle image upload. My architecture, is a rest PHP back-end and Ember for the front-end. This is the 3 solutions that i see to make this. But which one is the best ?
The first makes a data uri of the image in the frontend side and sends the string representing the image to the backend that saves it to database. Simple but maybe this is not optimized.
The second also makes a data uri from the image but instead of saving it the string representing the image into the database, the backend reconstructs and saves it on the file system and saves the link into the database.
The Third uses the standard way, uploads the image to the server and saves it on the file system.