Bill and all,
I think I'm getting closer. But when I upload a file I get the error: "CGI
open of tmpfile: Permission denied".
Now what?
Jerry
From: "$Bill Luebkert" <[EMAIL PROTECTED]>
To: Jerry Kassebaum <[EMAIL PROTECTED]>
Subject: Re: File Upload
um
Sent: Monday, December 04, 2006 8:05 AM
To: perl-win32-users@listserv.ActiveState.com
Subject: Re: File Upload
>Can u restate the question?
Sure.
Take a look at http://biblescramble.com/dns/textArea04.cgi.
If a visitor enters text in the top text box and hits "submit query",
the
No idea what happened to my brain here. This was supposed to be a
response to the File Upload thread.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Webb, Andy
Sent: Sunday, December 03, 2006 7:20 PM
To: perl-win32-users@listserv.ActiveState.com
Subject
>Can u restate the question?
Sure.
Take a look at http://biblescramble.com/dns/textArea04.cgi.
If a visitor enters text in the top text box and hits "submit query", the
next page returns what was typed in .
I'd also like the visitor to be able to send in a text file from his hard
drive and ha
Can u restate the question?
--
REMEMBER THE WORLD TRADE CENTER ---=< WTC 911 >=--
"...ne cede malis"
0100
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman
Jerry Kassebaum wrote:
> Friends,
>
> The cgi below is at http://biblescramble.com/dns/textArea04.cgi.
>
> If you type lines in the text box, it spits them back when you hit "Submit
> Query".
>
> However, I also want it to spit back a text file. What am I missing?
If you want to spit back a t
Friends,
The cgi below is at http://biblescramble.com/dns/textArea04.cgi.
If you type lines in the text box, it spits them back when you hit "Submit
Query".
However, I also want it to spit back a text file. What am I missing?
Thanks!
Jerry
##
#!/usr//bin/perl -T
#use strict;
use C
I'm an idiot. I set the form to the correct encoding, using a type
attribute, not enctype.
Deary me time for a holiday.
Thanks for you help!
lee
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com
Everything is fine with my file upload, except
$cgi_pm_instance->upload($upload_form_field_name)
always returns a string and never a file handle.
If no-one knows about this, I'll get in touch with the CGI pm chap.
TIA
lee
___
Perl-Win
Thanks for the example
Seems to suggest that my code was okay, because
I get a related error when running your code:
Can't use an undefined value as a symbol reference at ...
the lines
while($bytesread = read($fh, $buffer, 1024)) {
print $buffer;
> # # would it be faster to do an 's/\//\\/g' to replace all '/' with '\'
> # # and then just get the index of the final '\'? Don't know...
> # # it would make the code cleaner, but it may be less efficient...
> my $posreg = rindex($in_file_name, "/");
> my $posback = rindex($in_file_n
At 15:58 05/03/2002 -0500, Morse, Richard E. wrote:
>H some of this doesn't look right.
>
>For instance, point 5 -- $file in this case should be the filehandle,
>which may
>also be the text of the parameter, but I'm not positive on that -- if you want
>the value of the file, try $self->{c
Hello, All,
This might be a bit offtopic, but while uploading a file to a server,
all zeros (0x0) are replaced with spaces (0x20). What is wrong with
the following code then or what's wrong with the server configuration?
I am using HTML::Mason with Apache server 1.3.22 under RedHat Linux 6.2
When
Ok, I got it. Turns out you don't need to mess with the metabase for this
one (luckily).
1.) In the Internet Services Manager Snap in, right click on your
computername and select properties
2.) Select 'Edit' to edit the master properties.
3.) On the home directory tab, select 'configuration'
4.)
time to research any further.
-Original Message-
From: Greg Merritt [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 9:48 AM
To: [EMAIL PROTECTED]
Subject: Re: large file upload
I'm going to guess that I'll have to do a similiar thing, but on the server
side with I
On Thu, 21 Dec 2000, byron wise wrote:
> I have a script that uploads a file from a browser. I'm not getting the
> permissions on this that I want. how can I change them at time of upload?
>
> sub upload_file
> {
> my $temp_dirpath = shift @_;
> my $buffer = '';
>
Personally, I would break it up into two steps. Step one would be for the
user to enter the data info. Then step two would be to upload the file. I
think this simplifies the process and allows you to only have to worry about
one thing at a time.
p ---
_
17 matches
Mail list logo