bgrins / filereader.js

A lightweight wrapper for the JavaScript FileReader interface
http://bgrins.github.com/filereader.js/
MIT License
413 stars 86 forks source link

Upload to using existing values from a form for degradation #3

Closed bgrins closed 10 years ago

bgrins commented 13 years ago

I'm thinking if you have markup like:

You might be able to call FileUploadJS(document.getElementById('upload'));

This would override the submit event, and perform an ajax file upload along with existing form values. If the ajax file upload is not supported, then it would allow the standard file upload to go through.