In previous article I’ve described how add AjaxFileUpload to jQuery File Commander, now it’s time to describe how to add SwfUpload which allow to smoothly add uploads queue and progress bar. I use simply demo as base from SwfUpload in version 2.2.0.1 but there is no limits to use any upload library.
Ok, let’s see how to do that. The main problem was to add additional parameter during posting process where we store upload path. It was achieved by using addFileParam method in SwfUpload object. Next problem to solve was to refresh panels with files when upload is finished. To do that I used two callbacks from swf upload which fired my functions, one when file was put to upload queue and another one when upload is complete. (more…)
