I’m trying to find any examples of uploading a file with a Dart script.
I understand the part about reading it on the client side after being selected in a file input field, but how can I POST it to the server and save it as a file?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Until a multipart encoding parser is available, you can use File API on client to read and upload file content as dataUrl. This API has quite good support in browsers ( see http://caniuse.com/filereader ).
On client side :
And on server side :
References :