Solved

File Upload Problems

Posted on 1999-01-06
3
166 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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
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…
Six Sigma Control Plans

734 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