• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Uploading Folder from Client Side to Server Side

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 686
Mac
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic