Hi all,
I am using swfupload component in my application to upload files.
I have my own asp file to handle file addition to my application. In this file I've used swfupload component.
I want the behaviour something like following:
I've one 'select files' button on asp page. When I click on this button I want the file browser window to popup. Then I'll select the files and they will be added to the queue. Once the files are added to the queue, I want to perform check on each file, as the file already exists or not. Then I want to display the checkbox to take the input from the user as overwrite the file or not .
So the files, for which checkbox is unchecked, I want to remove them from the queue.
I've one more button on my page as "Start Upload". Once this button is clicked I want to start upload of the files which are in queue.
Is it possible to achieve above functionality using swfupload component? If yes, can anybody help me out on this?
Thanks in advance.
Regards
AJAX
It should be possible. You'll probably have to use some AJAX to query to ask the server if the queued files already exist.
The rest is just a matter of showing/hiding check boxes.
Then you can call cancelUpload(file_id) for each file you want to remove from the queue before you allow the uploading to start.