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?
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?
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 :