Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Uploading Folder from Client Side to Server Side  RSS feed

 
Ola Daniel
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need a little puch in the right direction please. I have a JSP page that uploads images for employees in an organization. My initial design was to use the <input type="file"... of a form to upload each image one at a time into my database. My client is not comfortable with that design. he wants it in such a way that, the user specifies the folder for a range of employees and then the images are uploaded into the db.. of course there is to be a standard way of naming the pictures. The challenge I am having is that I dont know of any form element that hadles folder upload. Help please!!
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think you'll find one.
The limits on the file input control in HTTP forms is intentionally restricitive and limited. For security reasons, the browser will only upload files explicitly picked by the user.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have used a shared folder or ftp that the person would drag the files too. I had a program watch that folder for new information and it would do the processing automatically. Not sure if you could do something like that.

The user liked that idea since it required little effort on their part.

My 2 cents,
Eric
 
Ruchik Mehtaji
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the best way to fix this problem would be to write a code that zips the folder and then upload the ziped folder to the server. Does that seems acceptable?
 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts is providing upload.jsp.
You don't need to code even a single line, other then defining your storage place folders.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!