• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Uploading files

 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do I need to do to set up a simple file upload on a plain HTML webpage? I saw the input type of file but what else is needed to incorporate this? Thanks in advance.

Rob
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You also need to set the enctype of the form to multipart/form-data.

Then, of course, you need server-side code to parse the multi-part form.
 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alright I saw the encrypt afterwards but I was hoping that I didn't need a script to accept it. Do you know of any "free" modules for accepting multi-part form data in Perl or Java? I know it's not PerlRanch but I might as well ask it . Thanks.

Rob
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is always a good place to start!

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rob Hunter:
Alright I saw the encrypt afterwards...

"enc" doesn't stand for encrypt, but rather encode.

Do you know of any "free" modules for accepting multi-part form data in Perl or Java?

If using Java, there's a handy FAQ entry in the JSP FAQ on just this topic.
[ December 20, 2007: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic