Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base64 Upload #10

Open
NicholasPeretti opened this issue Sep 9, 2017 · 4 comments
Open

Base64 Upload #10

NicholasPeretti opened this issue Sep 9, 2017 · 4 comments

Comments

@NicholasPeretti
Copy link

I need to upload my pictures via base64 sending also other information. The request payload should look like that:

{
  "image": "base64ofTheLoadedPic",
  "user": 1,
  "product": 3
}

Is there a way that allows me to change the way the data is sent?

@aleksei0807
Copy link
Owner

there are no way to do this yet. you can send a PR with support for this

@jimmywarting
Copy link

Don't use base64... or JSON representation when uploading binary files... use multipart upload...

@kirillDanshin
Copy link
Collaborator

-1 on this feature. you should not send files as base64. use proper storage and save files with multipart requests

@jediofthecode
Copy link
Contributor

i'm also going to vote -1 on this, base64 uploads increase server side RAM usage by too much to be worth it. It's better to just submit the form as multipart, as @kirillDanshin said.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants