select dialog starts upload when user wants to change dir

Upload core product.
Post Reply
Chris78
Posts: 22
Joined: Fri Aug 15, 2008 9:51 am

select dialog starts upload when user wants to change dir

Post 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

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

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

Post 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 ?

Chris78
Posts: 22
Joined: Fri Aug 15, 2008 9:51 am

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

Post 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

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

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

Post by support »

I will try to plan it for 2.4. 2.3 will be released this week.

Chris78
Posts: 22
Joined: Fri Aug 15, 2008 9:51 am

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

Post by Chris78 »

Thanks!
Looking forward to the 2.4 release then :)

Regards,
Chris

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

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

Post 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.

Chris78
Posts: 22
Joined: Fri Aug 15, 2008 9:51 am

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

Post by Chris78 »

*remind*

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

Chris

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

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

Post 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.

Chris78
Posts: 22
Joined: Fri Aug 15, 2008 9:51 am

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

Post 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

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

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

Post by support »

Drop an email to support(at)jfileupload(dot)com and they will provide a testing version of 2.4

Post Reply