I am using Uploadify plugin for asp.net web appication.
I want to let user delete an uploaded file. For this, I used onCancel event of Uploadify.
But, the problem is, if the page refreshes/postbacks, the FileUpload queue of Uploadify gets clear automatically. How do I keep the queue-items as it is on Postbacks?
How do I delete files on server after they are automatically uploaded? Do I need to write code in Upload.ashx or in codeBehind file of the webpage?
You need to store file upload status in database on file upload completion, at onCancel event just check (create handler with ajax call) whether there is already uploaded item stored, if yes then delete it.
There is no way to keep track of uploaded item once postback happen, all you need to store data in some sort of states (session, cookie) or in database.