Page 1 of 1

select dialog starts upload when user wants to change dir

Posted: Tue Feb 03, 2009 10:03 am
by Chris78
Hi!

Is it a bug or feature? :)

If you click the select button of JFileUpload, some users are used to change the directory by typing in the path, like "c:\my_files", and press Enter to change to that directory.

Unfortunately JFileUpload will start uploading that whole folder immediately. In most cases this is an unwanted behavior here.

Still we want to have the possibility to upload multiple files or folders, but only if you select them and confirm the select dialog by clicking the "open" button.

Any suggestion, what we could do about that?

Regards,
Chris

Re: select dialog starts upload when user wants to change dir

Posted: Tue Feb 03, 2009 6:16 pm
by support
It could be considered as a feature or a bug :-)
What you would like is the file chooser to open the directory when "Enter" key is pressed, as if you double click on directory ? And not behave as if you click "open" button (which uploads the selected directory), correct ?

Re: select dialog starts upload when user wants to change dir

Posted: Wed Feb 04, 2009 9:00 am
by Chris78
absolutely! :)
That's the behavior as you can find it in most applications I think.

I think the best solution would be a configuration option for the desired behavior in the i18n.properties.

Regards,
Chris

Re: select dialog starts upload when user wants to change dir

Posted: Wed Feb 04, 2009 10:58 pm
by support
I will try to plan it for 2.4. 2.3 will be released this week.

Re: select dialog starts upload when user wants to change dir

Posted: Fri Feb 06, 2009 8:34 am
by Chris78
Thanks!
Looking forward to the 2.4 release then :)

Regards,
Chris

Re: select dialog starts upload when user wants to change dir

Posted: Fri Feb 06, 2009 6:38 pm
by support
Do not hesitate to post a reminder in the forum if you don't here from us by email with a testing version.

Re: select dialog starts upload when user wants to change dir

Posted: Thu Mar 12, 2009 12:18 pm
by Chris78
*remind*

Any news concerning this thread? Is there an appropriate testing version available yet?

Chris

Re: select dialog starts upload when user wants to change dir

Posted: Thu Mar 12, 2009 9:05 pm
by support
We're able to disable enter key only. We've implemented it in 2.4 by adding the following option in i18n.properties: filechooser.dialog.enterkey=disabled

Could it fit to your need ? It forces end-user to double click on folder to go into.

Re: select dialog starts upload when user wants to change dir

Posted: Fri Mar 13, 2009 9:00 am
by Chris78
Hi!

Disabling the enter key would be a useful option.
So if your focus is on a folder icon or in the filename textfield below the upload should not start immediately.
The perfect solution though would be to change into the corresponding directory when the user presses and focus is on a directory.

At the moment we worked around accidential uploads of whole directories by using the BatchUpload Plugin (which we'd like to register soon, after some testing).


Regards
Chris

Re: select dialog starts upload when user wants to change dir

Posted: Fri Mar 13, 2009 6:38 pm
by support
Drop an email to support(at)jfileupload(dot)com and they will provide a testing version of 2.4