Add ajax file upload
Add Ajax file upload capabilities to SHtml, preferably using http://valums.com/ajax-upload/ as a front-end "working use case".
SHtml calling interface could be:
def ajaxFileUpload(func: (FileParamHolder) => Unit, jsFunc : Call, func : (String) => JsCmd, attrs : (String, String)*)
This would be consistent with other ajax interfaces and with file upload (non-Ajax).
SHtml calling interface could be:
def ajaxFileUpload(func: (FileParamHolder) => Unit, jsFunc : Call, func : (String) => JsCmd, attrs : (String, String)*)
This would be consistent with other ajax interfaces and with file upload (non-Ajax).
Leave a comment
on 2010-11-30 15:22 *
By maarten.koopmans
See also plupload.com for nifty upload examples.
on 2011-01-22 14:07 *
By maarten.koopmans
This one might relate to the now fixed raw access to post data for use cases with XHR HTML5 blob uploads.
on 2011-01-26 07:26 *
By maarten.koopmans
I found this one http://aquantum-demo.appspot.com/file-upload and am trying to get that one working today. Once I'll do I push it to a self-contaned git repo on github. MIT licensed, so should be good(?).
on 2011-01-26 13:58 *
By maarten.koopmans
Done. Check out https://github.com/mbk/ajaxupload_with_comet
Contains a /devtest link that includes the above mentioned UI as plain html/JS, and uploads to a DispatchPF. Works like a charm, how can I help to wrap this up?
Contains a /devtest link that includes the above mentioned UI as plain html/JS, and uploads to a DispatchPF. Works like a charm, how can I help to wrap this up?
on 2011-03-17 07:06 *
By maarten.koopmans
I am in Norway until Saturday, but may have some spare time left; if you post me the example of one comet actor providing feedback (I think you made a project for that a few weeks ago, but can't find the thing from here), I'll try and write:
a) a complete piece of code in a blank project that does an Ajax upload with feedback and executes a function on upload
b) at least write in the Wiki "how it's done"
c) Maybe you'll see a quick way to "collapse" the code into a function on SHtml
a) a complete piece of code in a blank project that does an Ajax upload with feedback and executes a function on upload
b) at least write in the Wiki "how it's done"
c) Maybe you'll see a quick way to "collapse" the code into a function on SHtml