I am using the Aquantum jQuery plugin to upload files to a LAMP site.
Works fine.. but I also need to do a success callback to put the uploaded filename and file URL
in a form field.
The upload plugin is here:
http://aquantum-demo.appspot.com/file-upload
(very clean, cool file upload widget, IMO)
Here’s the callback code:
( the file name part works well.. but how do I grab the file URL too?)
jQuery('#fileupload').bind('fileuploaddone', function (e,data) {
jQuery('textarea').val( "<p><a href='" + NEED_FILE_URL_HERE + "' target='_blank'>" + data.files[0].name + "</a>" );
});
I heard from the author of the jQuery UpLoad plugin.
His suggestion works great now that I know the result
properties the callback can see..