Thanks, I found what I needed. I used the upload() function but failed to
save it, so the error wasn't a matter of not having uploaded right, it was
about correctly saving the uploaded file to the server. I'm getting to learn
the value of docs. :-)
Thanks again,
K. Parker
"Mark Stosberg" <[EMAIL
In article <[EMAIL PROTECTED]>, Li Ngok Lam wrote:
>
> - Original Message -
> From: "K. Parker" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, August 02, 2003 12:00 PM
> Subject: Uploading files
>
>
>> On a site I'm developing, I'm trying to create a script that uploads
- Original Message -
From: "K. Parker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 02, 2003 12:00 PM
Subject: Uploading files
> On a site I'm developing, I'm trying to create a script that uploads
> encrypted files and saves them in a particular directory.
You wi
mario kulka wrote:
> Hi,
> After I click on "submit" and point to the cgi there is a period of time
> before the cgi finishes running and loads the next page. If the script is
> simple and takes short amount of time everything is great. But what if
> that's not the case? What if the script (while
Here's a sample. The trick is to turn on autoflushing ($|=1;) so that
your text gets printed out right away.
#!/usr/bin/perl -w
use strict;
use CGI qw(:standard);
$|=1;
print header;
print start_html;
for (my $i=0; $i<100; $i++) {
print ".";
sleep 1;
}
print "\n";
print end_html;
On Fri
On Fri, 13 Dec 2002 05:19:08 -0200, [EMAIL PROTECTED] (Andre) wrote:
>Hi
>I know it is not entirely perl, but can anybody esplain me how does i do upload a
>file using a browser (can i use perl to do this)?
>Thanks
Here's a really simple method using CGI::Simple
#
Yes You can.
1st part
print " ";
print " ";
print "";
print "";
select file from local machine using file field.
field name is filetoupload.
afeter submiting you get value of file field at server side using
$filename=$q->param("filetoupload");
if(!open(OUTFILE, ">$SAVE_DIRECT
: "you want to take this to the beginners cgi list"; isn't
>this the beginner's mailing-list? ([EMAIL PROTECTED])
Correct. But there is another list that focusses on CGI issues like this
one: [EMAIL PROTECTED]
>>Subject: Re: uploading files
>>Date: Mon, 11 Mar
ou want to take this to the beginners cgi list"; isn't this
the beginner's mailing-list? ([EMAIL PROTECTED])
>Subject: Re: uploading files
>Date: Mon, 11 Mar 2002 09:17:24 -0800
>
>At 12:36 AM 3/11/02 -0600, Mariusz wrote:
>>Hi,
>>
>>I wrote th
At 12:36 AM 3/11/02 -0600, Mariusz wrote:
>Hi,
>
>I wrote this simple script to upload files, but when I substitute
>param('uploadfile') with the actual path in double quotes it doesn't work
>that way. However, it works perfectly fine if I use the form to submit the
>path of the file through an
--- Mike Butler <[EMAIL PROTECTED]> wrote:
> I need to create a status bar for users who are
> uploading pdf files, some of them quite large, to a
> web site. Some of the users are on dial-up and the
> upload time could be quite lengthy, so they need to
> know that their upload is progressing and
--- Mike Butler <[EMAIL PROTECTED]> wrote:
> I need to create a status bar for users who are
> uploading pdf files, some of them quite large, to a
> web site. Some of the users are on dial-up and the
> upload time could be quite lengthy, so they need to
> know that their upload is progressing and
This will give you the form. $script is the name of the cgi script that will
actually do the uploading.
use CGI;
$query = new CGI;
print $query->start_multipart_form(POST,"$script",);
print 'Enter the file to be uploaded: ',"\n";
print $query->filefield(-name=>"FILE");
print '',"
13 matches
Mail list logo