• Post Reply Bookmark Topic Watch Topic
  • New Topic

select folder for uploading  RSS feed

 
lynn fann
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to allow the users to select a folder to upload rather than files. What should i do??

My flow of the application:
the user can select the folder to upload.
My codes will get all the files in the folder and uplaod them.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"lynn",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with display names get deleted, often without warning

thanks,
Dave
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a Web application, using standard HTML <input type="file"> ?

If so, you are snookered. There is very little flexibility in standard HTML file upload. It just lets you choose a single file to upload.

You cannot write a JavaScript control to do better, because JavaScript cannot access the local filesystem. You might be able to do something using an ActiveX control, if you're on Windows only, but bear in mind that the user would have to consent to trust the control, and might very well refuse to do so.
[ November 08, 2006: Message edited by: Peter Chase ]
 
lynn fann
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, it is a web application. using <input type="file"> only allow the user to select files. I need to allow users to select particular folder. and I will get all the files in that folder.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!