Solved

File Upload Problems

Posted on 1999-01-06
3
162 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
3 Comments
 
LVL 84

Expert Comment

by:ozo
Comment Utility
what file upload script?
0
 
LVL 7

Expert Comment

by:yoren
Comment Utility
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
Comment Utility
You can find the script you need right here:

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

0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now