Limiting the number of files that can be uploaded
Posted: Thu May 28, 2009 2:32 pm
Hi there,
I'm just looking to see if it's possible to limit the number of files that can be uploaded using JFileUpload? We only want users to be able to upload 1 file at a time - ie. user drags the file over to the JFileUpload box, then adds some details about the file to a form and it then gets saved along with the form when the user clicks on 'save'. At the moment though users are able to upload several files to JFileUpload before filling out the form and clicking on save and this is causing problems.
Is there any way this can be limited to just 1 file at a time?
Many thanks!
I'm just looking to see if it's possible to limit the number of files that can be uploaded using JFileUpload? We only want users to be able to upload 1 file at a time - ie. user drags the file over to the JFileUpload box, then adds some details about the file to a form and it then gets saved along with the form when the user clicks on 'save'. At the moment though users are able to upload several files to JFileUpload before filling out the form and clicking on save and this is causing problems.
Is there any way this can be limited to just 1 file at a time?
Many thanks!