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

How to upload file to server in right way?

$
0
0

@dimas09 wrote:

I have model User and I want to develop uploading avatar to server or to S3 bucket(but I think it's dangerous)
What is the best practice to upload files to server?
I have two ideas. First to send file to server with jquery ajax. Second to encode file to base64 set it to model of user who changes avatar and save this model, in this case Ember will send PATCH request to my API.

Thank you

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4830

Trending Articles