I have a file, and I would like to receive the data of a Base64 file.
I tried:
$('input#myInput')[0].files[0]
to retrieve data. But it contains only the name, length, type of content, but not data.
I really need this data to send it to Amazon S3
I have already tested the API and when I submit data via the html form with the encoding type "multipart / form-data", it works.
I use this plugin: http://jasny.github.com/bootstrap/javascript.html#fileupload
And these plugins give me a preview image, and I get the data in the src attribute of the image preview. But when I send this data to S3, it will not work. Maybe I need to encode data like "multipart / form-data", but I don't know why.
Is there any way to get this data without using the html form?
jquery file html-input base64 file-upload
kschaeffler Sep 05 2018-12-12T00: 00Z
source share