Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4836

Prefered way to upload image with Ember ( DataUri vs Image Data)

$
0
0

@scandinave wrote:

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 ?

In brief,

  1. 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.

  2. 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.

  3. The Third uses the standard way, uploads the image to the server and saves it on the file system.

Any advice?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4836

Trending Articles