Solved

File Upload Problems

Posted on 1999-01-06
3
165 Views
Last Modified: 2010-03-05
I found the file upload script in the cgi-perl library, but am unable to figure out how to set where on the server the file is uploaded to.  Any ideas?  Also, is there a way to this if you don't have cgi-lib installed?
Thanks.
0
Comment
Question by:eugeniac
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 1207355
what file upload script?
0
 
LVL 7

Expert Comment

by:yoren
ID: 1207356
If you're talking about the cgi-lib I think you're talking about (the one that has ReadParse() which sets the hash %in), then the file contents are actually assigned to a CGI parameter. You then write that variable's value to whatever file you want. The name of the CGI parameter is the name of the file upload box on your HTML page. So if your HTML file had this:

<input type=file name="thefile"...>

then $in{'thefile'} in the perl script will hold the file contents.
0
 

Accepted Solution

by:
hap earned 50 total points
ID: 1207357
You can find the script you need right here:

http://www.freeperlcode.com/guide/Internet_Protocals/File_Upload/

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
perl CPAN issue 3 121
add a syntax to a csv file 8 99
Perl passing in variables to do substitution 6 79
Is it true to say that Python is successor of Perl? 7 213
On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question