Search found 3 matches

by mo_salih
Thu Nov 04, 2010 1:07 pm
Forum: JFileUpload
Topic: Need to check filenames before upload starts
Replies: 1
Views: 6654

Need to check filenames before upload starts

I am using JfileUpload and JbatchUpload and I have a requirement where I need to make sure that only one file of a certain extension is uploaded in a session. I get the filelist in JSTransferTriggered() but the problem is by that time, the upload already started. Is there a way to pause before uploa...
by mo_salih
Mon Jul 12, 2010 8:00 pm
Forum: JFileUpload
Topic: getFilenames() is empty before upload starts
Replies: 1
Views: 6337

getFilenames() is empty before upload starts

I've configured the applet to have a "select files" button and "start upload". When i use "select files" to add files to the upload queue, the method getFilenames() in javascript is empty and doesn't return the files in the queue only when i start upload do i get the list of files. Is there a proper...
by mo_salih
Wed Jul 07, 2010 2:27 pm
Forum: JFileUpload
Topic: When the applet is uploading onbeforeupload doesn't fire
Replies: 1
Views: 6800

When the applet is uploading onbeforeupload doesn't fire

I use onbeforeupload to detect when the page is about to be closed or refreshed. This works fine except when the the applet is actively uploading, the event doesn't fire. My question is how can I detect when the applet is uploading to warn the user before attempting to refresh or close the window?