SUMMARY: Problem uploading large files (broken storing)

2010-03-07 Thread J Alejandro Ceballos Z
Well, after trying with cgi.pm options ($POST_MAX) and apache directives: TimeOut, KeepAlive and LimitRequestBody, the problem comes from the size of /tmp directory (thank you Lawrence), it was very small (450 Mb) and the temporary file can not be stored. So, just make it bigger and probl

Problem uploading large files (broken storing)

2010-03-01 Thread J Alejandro Ceballos Z
I have a problem with a perl cgi used to upload files. It was working fine until my hosting provider making some upgrade in the server. Now, it can upload files undes 460 Mb, but not over it. If try, a file of 0 length is created and the cgi continue, but file is not stored. I tryied us

Re: uploading a file with perl

2008-01-13 Thread Gunnar Hjalmarsson
Mike Williams wrote: On Jan 12, 2008 9:33 PM, Sean Davis wrote: You should probably be using CGI.pm. It will vastly simplify what you are doing. Then, you can read any of a dozen sites on doing file uploads using CGI; see search.cpan.org for the details of using CGI.pm. I agree with Sean. Y

Re: uploading a file with perl--->kueri: ------------4CyrMz2ZeGIClwYfFsVdcv Content-Disposition: form-data; name="level" asda ------------4CyrMz2ZeGIClwYfFsVdcv Content-Disposition: form-data; name="m

2008-01-13 Thread Mike Williams
Then, you can read any of a dozen sites on doing file uploads using > CGI; see search.cpan.org for the details of using CGI.pm. > > Sean I agree with Sean. You have 'use CGI' in your code, but you don't actually use it, you really should. > > > > I am wr

Re: uploading a file with perl--->kueri: ------------4CyrMz2ZeGIClwYfFsVdcv Content-Disposition: form-data; name="level" asda ------------4CyrMz2ZeGIClwYfFsVdcv Content-Disposition: form-data; name="m

2008-01-13 Thread Sean Davis
wrote: > Dear my friends... > > I am still new in perl. > > I am writing perl-cgi application for uploading a file. I did "chmod > 777 ../../artikel". But I get weird displayed message: > " > ueri: 4CyrMz2ZeGIClwYfFsVdcv Co > î 6êÎ]Ë k

Re: perl for uploading file shows weird characters.

2008-01-12 Thread Gunnar Hjalmarsson
[ please do not multi-post! ] Patrik Hasibuan wrote: I am writing perl-cgi application for uploading a file. I did "chmod 777 ../../artikel". But I get weird displayed message: " ueri: 4CyrMz2ZeGIClwYfFsVdcv Co î 6êÎ]Ë kšfþx·¾ ðfS4M3>º {½‡<Óöù³®�¯3çý

uploading a file with perl--->kueri: ------------4CyrMz2ZeGIClwYfFsVdcv Content-Disposition: form-data; name="level" asda ------------4CyrMz2ZeGIClwYfFsVdcv Content-Disposition: form-data; name="major

2008-01-12 Thread Patrik Hasibuan
Dear my friends... I am still new in perl. I am writing perl-cgi application for uploading a file. I did "chmod 777 ../../artikel". But I get weird displayed message: " ueri: 4CyrMz2ZeGIClwYfFsVdcv Co î 6êÎ]Ë kšfþx·¾ ðfS4M3>º {½‡<Óöù³®�¯3çýGèBù= „¬È›ø

Re: Uploading file

2004-03-19 Thread Camilo Gonzalez
Ash Singh wrote: Use this as an example, it converts the file to binary mode just in case its not. It also strips out the path of the file coming from the user's local machine. #!/usr/bin/perl use CGI; use strict; my $cgi = new CGI; print $cgi->header; my $query = CGI::new(); use CGI qw(param);

RE: Uploading file

2004-03-18 Thread Ash Singh
Use this as an example, it converts the file to binary mode just in case its not. It also strips out the path of the file coming from the user's local machine. #!/usr/bin/perl use CGI; use strict; my $cgi = new CGI; print $cgi->header; my $query = CGI::new(); use CGI qw(param); my ($bytesread,

RE: Uploading file

2004-03-18 Thread Bill Tribley
Sent: Thursday, March 18, 2004 11:57 PM To: CGI Beginners Subject: Uploading file Okay, I'm totally stumped. I'm trying to upload a file using a browser and a file upload field and saving the file to my server. The code is as follows: my $filename = $cgiobj->param('uploade

Uploading file

2004-03-18 Thread Camilo Gonzalez
Okay, I'm totally stumped. I'm trying to upload a file using a browser and a file upload field and saving the file to my server. The code is as follows: my $filename = $cgiobj->param('uploaded_file'); my $fh = $cgiobj->upload('uploaded_file'); open (OUTFILE, ">../featImages/$filename

Re: File uploading

2003-07-18 Thread Octavian Rasnita
Just a warning. This method doesn't work right under Windows. The file is fully uploaded, then it is tested if the max size of the file is overdone. If the file size is 10 GB, the file is fully uploaded first, then... doesn't matter ... but the program will work, and after it finish upl

Re: File uploading

2003-07-18 Thread fliptop
On Fri, 18 Jul 2003 at 23:46, Mike opined: M:What if I now want to upload 2 files. The first can be up to 100k in size M:and the second up to 80k in size? That is pretty much the way I have it set M:up at the moment... M: M:Or should I admit defeat at this stage and allow 2 files to be uploaded

Re: File uploading

2003-07-18 Thread Mike
on opined: > > MH:I have a perl program that allows a user to upload a file (either .jpg or > MH:.gif) to the server, and returns a message if it exceeds a specified size > MH:(in my case 100kB). Currently (and don't laugh - I am new to perl), I go > MH:through the motions of

Re: File uploading

2003-07-18 Thread fliptop
h the motions of uploading the file in 1024-byte blocks (in binary MH:mode), and increment a counter with each block. If the counter exceeds 100 MH:(i.e. greater than 100kB), then it exits the loop, displays a warning MH:message and deletes the file. MH: MH:I am sure there would have to be an e

Re: File uploading

2003-07-18 Thread awarsd
Hi yse there is a way. the flag -s $size_file = (-s $fhandle)/1024; $fhandle is the complete path C:\\..\***.extension it will return in kilobyte 1Kn=1024bytes Hope this helps anthoyn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

File uploading

2003-07-17 Thread Mike Harrison
Hello, I have a perl program that allows a user to upload a file (either .jpg or .gif) to the server, and returns a message if it exceeds a specified size (in my case 100kB). Currently (and don't laugh - I am new to perl), I go through the motions of uploading the file in 1024-byte block

Re: retain same file name when uploading

2002-09-10 Thread Naomi Arries
On Mon, 9 Sep 2002 16:03:19 -0400 Bob Showalter <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Naomi Arries [mailto:[EMAIL PROTECTED]] > > Sent: Monday, September 09, 2002 3:42 PM > > To: [EMAIL PROTECTED] > > Subject: retain same file

RE: retain same file name when uploading

2002-09-09 Thread Bob Showalter
> -Original Message- > From: Naomi Arries [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 09, 2002 4:18 PM > To: Bob Showalter > Cc: [EMAIL PROTECTED] > Subject: Re: retain same file name when uploading > > > See Bob, > > I am attempting to acti

Re: retain same file name when uploading

2002-09-09 Thread Naomi Arries
the server (sever-client operates withing the same LAN). every time when uploading the file from the client then the name of the file gets changed and the c++ program can't recognize the c__input format. I got an idea, to use the fileparsing option of the BASNAME module. se File::Basename

RE: retain same file name when uploading

2002-09-09 Thread Camilo Gonzalez
Nevermind. -Original Message- From: Christopher G Tantalo [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 3:11 PM To: Camilo Gonzalez Cc: 'Naomi Arries'; [EMAIL PROTECTED] Subject: Re: retain same file name when uploading Camilo Gonzalez wrote: > Naomi, >

Re: retain same file name when uploading

2002-09-09 Thread Christopher G Tantalo
Camilo Gonzalez wrote: > Naomi, > > The purpose of this list is not for us to write programs for you but to help > you overcome any specific problems you may have. Please post specifically > what you think the problem(s) are and the kind Perl gurus here will be all > too happy to assist you. Cam

RE: retain same file name when uploading

2002-09-09 Thread Bob Showalter
> -Original Message- > From: Naomi Arries [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 09, 2002 3:42 PM > To: [EMAIL PROTECTED] > Subject: retain same file name when uploading > > > I have noticed that when uploading a file (say > c:\input.txt) >

RE: retain same file name when uploading

2002-09-09 Thread Camilo Gonzalez
: Naomi Arries [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 2:42 PM To: [EMAIL PROTECTED] Subject: retain same file name when uploading I have noticed that when uploading a file (say c:\input.txt) to the upload directory on my apache server then that file gets uploaded with another name

retain same file name when uploading

2002-09-09 Thread Naomi Arries
I have noticed that when uploading a file (say c:\input.txt) to the upload directory on my apache server then that file gets uploaded with another name( C__input.txt. See below the script called upload.pl. Could you someone modify it such that the same name remain consistant during (client

Re: Odd boxes after uploading

2002-07-08 Thread Todd Wade
me the monkey"; #this line prints the sentence "Show me the monkey" > > Even after I chmod'ed it to 751 or 755, I got an error! So I > downloaded the script to see what went wrong. Suddenly I've got > "boxes" added in the text - see attachment (I hope I

Re: Odd boxes after uploading

2002-07-07 Thread Connie Chan
> Sure, I've got my own Apache-server. Then I wonder why you going to Upload it, but not save your file directly inside the bin ? Are you running them with different OS ? > print "Content-type:text/html\n\n"; Yes, like Janek said, you may try to make it print "Content-type: text/html\n\n"; (wi

Re: Odd boxes after uploading

2002-07-07 Thread Janek Schleicher
Henk Van Ess wrote at Sun, 07 Jul 2002 16:27:42 +0200: > This is the script: > > #!/usr/bin/perl > > print "Content-type:text/html\n\n"; ^^ I'm not sure, whether it plays a role, but it seems that a blank is missed: print "Content-type: text/html\n\n"; Best Wishes, Janek

Re: Odd boxes after uploading

2002-07-07 Thread Mat Harris
ie > > > >- Original Message - >From: "Henk van Ess" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Sunday, July 07, 2002 9:59 PM >Subject: Odd boxes after uploading > > > > Dear all > > > > I just uploaded the followin

Odd boxes after uploading

2002-07-07 Thread Henk van Ess
Hello beginners-cgi, Connie, 1. Do you have the right to run CGI at your server ? Sure, I've got my own Apache-server. 2. Do you know if you are pointing your perl compiler at a right path( #!/usr/bin/perl) ? You can't just copy this from book. Different server may config it at different loca

Re: Odd boxes after uploading

2002-07-07 Thread Connie Chan
PROTECTED]> Sent: Sunday, July 07, 2002 9:59 PM Subject: Odd boxes after uploading > Dear all > > I just uploaded the following .cgi to my server: > > #!/usr/bin/perl > print "Content-type:text/html\n\n"; > print "Show me the monkey"; #this line print

Odd boxes after uploading

2002-07-07 Thread Henk van Ess
nloaded the script to see what went wrong. Suddenly I've got "boxes" added in the text - see attachment (I hope I'm allowed to send this attachment) I tried FlashFXP and WS-FTP for uploading the file, but both gave the same result. What is wrong? monkey.cgi Description: Binary

RE: Uploading Help

2002-06-18 Thread Scot Robnett
Unless you run your own server, this may not work because the web host may not have decided to update their version of Perl or CGI.pm yet. For instance, my hosting service is still using Perl 5.005_03 with CGI.pm version 2.46. So I tried the preferred upload method with no success. The previous m

Re: Uploading Help

2002-06-18 Thread John Brooking
--- Ovid <[EMAIL PROTECTED]> wrote: > --- Janek Schleicher <[EMAIL PROTECTED]> wrote: > > I'm also not an expert of uploading files. > > But you do two things to read the file: > > > > $file = $q->param("file$i"); > > Now $file

Re: Uploading Help

2002-06-14 Thread Janek Schleicher
Ovid wrote at Fri, 14 Jun 2002 16:43:51 +0200: > It would seem that way, but this is not the case. From the CGI.pm documentation: > > When the form is processed, you can retrieve the entered filename by calling >param(): > >$filename = $query->param('uploaded_file'); > > [

Re: Uploading Help

2002-06-14 Thread Ovid
Crud! This is what I get for typing a program directly into a browser window :) > for ( 1 .. 5 ) { > if ( my $file = $q->param( "file$_" ) { > my $filename = basename( $file ); > open FILE, "> $user->{'site_id'}/$filename" or error(...); >

Re: Uploading Help

2002-06-14 Thread Ovid
--- Janek Schleicher <[EMAIL PROTECTED]> wrote: > I'm also not an expert of uploading files. > But you do two things to read the file: > > $file = $q->param("file$i"); > Now $file contains a string. > > Then you use something like > my $up

Re: Uploading Help

2002-06-14 Thread Janek Schleicher
; > my $uploaded = <$file>; > print FILE $uploaded; > } > close FILE or die "$!"; > > > > } > } I'm also not an expert of uploading files. But you do two things to read the file: $file = $q->param("file$i"); No

Re: Uploading Help

2002-06-14 Thread John Brooking
Oh! Upon re-reading I realize you probably meant that nothing is printed to the file, you are just getting an empty file created. Sorry for misunderstanding. Unfortunately, I don't have any experience in uploading files, so I'm sure that others on this list can be of more help than

Re: Uploading Help

2002-06-14 Thread John Brooking
True. The only print statement I see here is the one which prints the contents of $uploaded to FILE. Maybe after you do this, you want to either print out an HTML response or redirect to another page? If so, you need to write more code to do that. - John --- LinkS On WeB <[EMAIL PROTECTED]> wrot

Uploading Help

2002-06-14 Thread LinkS On WeB
for some reason when, I do this it doesnt print any thing, it just makes the file. sub uploadfile { for ($i=1; $i<=5; $i++) { if ($q->param("file$i")) { $filename = $q->param("file$i"); $file = $q->param("file$i"); $filename =~ s/.*[\/\\]//; open (FILE,">$us

Re: file uploading

2002-06-13 Thread Ovid
--- "Greg D." <[EMAIL PROTECTED]> wrote: > Hello, > > I was wondering if anyone knew the best way to upload a file and then > populate the text area with the text file you just selected. Is there any > way to do that with perl and cgi instead of having to use javascript? > Or if that i

file uploading

2002-06-13 Thread Greg D .
Hello, I was wondering if anyone knew the best way to upload a file and then populate the text area with the text file you just selected. Is there any way to do that with perl and cgi instead of having to use javascript? Or if that is not possible in perl and cgi is there a way to sav

Re: Uploading files timeout

2002-06-10 Thread Todd Wade
"Octavian Rasnita" <[EMAIL PROTECTED]> wrote in message 00ff01c210e4$af46dd00$[EMAIL PROTECTED]">news:00ff01c210e4$af46dd00$[EMAIL PROTECTED]... > Hi all, > > I've made a form for uploading files and I want to let the visitors to > upload large files.

Uploading files timeout

2002-06-10 Thread Octavian Rasnita
Hi all, I've made a form for uploading files and I want to let the visitors to upload large files. I've heard that it can appear timeouts when uploading large files to a www server with a form. Is it true? If yes, what can I do to avoid the timeout? Thank you. Teddy, [EMAIL

Re: Uploading with a text field?

2002-04-15 Thread fliptop
octavian Rasnita wrote: > Is it possible to use a text field for uploading files, or I need to use > only a file field? > I have some reasons for wanting only a text file. use an in your html. to restrict file types, examine the uploaded file's content type: use CGI; my $cgi

RE: Uploading with a text field?

2002-04-15 Thread Scot Robnett
From: octavian Rasnita [mailto:[EMAIL PROTECTED]] Sent: Monday, April 15, 2002 7:40 AM To: [EMAIL PROTECTED] Subject: Uploading with a text field? Hi all, Is it possible to use a text field for uploading files, or I need to use only a file field? I have some reasons for wanting only a text file. T

Uploading with a text field?

2002-04-15 Thread octavian Rasnita
Hi all, Is it possible to use a text field for uploading files, or I need to use only a file field? I have some reasons for wanting only a text file. Thanks. Teddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Uploading

2002-03-22 Thread fliptop
Octavian Rasnita wrote: > When I upload a file from my computer to a server, I choose a local file, I > open it, then I print its content into another file. > But if I want to upload a file from my local > /htdocs/ folder into the /images/ folder on the server, how could Perl know > that the spec

Uploading

2002-03-22 Thread Octavian Rasnita
Hi all, I don't understand something. When I upload a file from my computer to a server, I choose a local file, I open it, then I print its content into another file. But if I want to upload a file from my local /htdocs/ folder into the /images/ folder on the server, how could Perl know that the

Uploading a binary file

2002-03-07 Thread Octavian Rasnita
Hi all, I tried the following script and it download the file I want in the /cgi-bin directory. The downloaded files have a name like CGItemp56530. I don't know what is the problem with this file, but I can't rename or delete it without closing the web server. Do you know what could I do to down

Re: Uploading a file

2002-02-27 Thread fliptop
Octavian Rasnita wrote: > I saw a question about how to make a Perl script for uploading a file and I > didn't see any answer for it. > I am also interested in this thing. > > Could somebody give us some hints? > Or, give us a source for a Perl script for uploading a file

Re: Uploading a file

2002-02-27 Thread eric-perl
On Wed, 27 Feb 2002, Octavian Rasnita wrote: > I saw a question about how to make a Perl script for uploading a file > and I didn't see any answer for it. I am also interested in this > thing. > > Could somebody give us some hints? > Or, give us a source for a Perl scri

Uploading a file

2002-02-27 Thread Octavian Rasnita
Hi all, I saw a question about how to make a Perl script for uploading a file and I didn't see any answer for it. I am also interested in this thing. Could somebody give us some hints? Or, give us a source for a Perl script for uploading a file. Thank you very much. Teddy, My dear

Re: Uploading a file?

2002-02-25 Thread fliptop
Rob Roudebush wrote: > Does anyone know how to upload a file to your site? perldoc CGI and search for the description of the upload() method. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Uploading a file?

2002-02-25 Thread Rob Roudebush
Does anyone know how to upload a file to your site? -Rob - Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games

Uploading a file

2002-02-18 Thread Octavian Rasnita
Hi all, I want to make a simple script for uploading a file. Please tell me if there is a function, or give me some tips what should I do to upload a file which is typed in a file field. Thank you. Teddy, My dear email address is [EMAIL PROTECTED

Uploading an entire folder using CGI

2002-02-06 Thread Jason Moore
" and locate each file to upload, which if you have many files can be very time consuming. (the users will have >60 files to upload!) Is there a way to apply this to uploading folders? Can you upload a folder with Perl? If so, how? Any suggestions or solutions? Thanks in advance for

Re: uploading file

2001-11-30 Thread Scott R. Godin
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Djoko Priyono) wrote: > > your best bet is to read the docs for CGI.pm. you can do that by > > typing: > > > > perldoc CGI this isn't as good a choice as the below for the simple reason that the docs would make the .pm file "friggin' huge" >

Re: uploading file

2001-11-30 Thread Djoko Priyono
On 30 November 2001 Friday 12:20 am, fliptop wrote: > Pedro A Reche Gallardo wrote: > > Hi all, I am beginner with cgi scripting and I am trying to make a cgi > > script that can upload a file, and work with it, or alternatively if > > there no file to upload is specified, use the input pasted in

Re: uploading file

2001-11-29 Thread fliptop
Pedro A Reche Gallardo wrote: > > Hi all, I am beginner with cgi scripting and I am trying to make a cgi > script that can upload a file, and work with it, or alternatively if > there no file to upload is specified, use the input pasted in the form > "text area". I now how to do the second one, b

uploading file

2001-11-29 Thread Pedro A Reche Gallardo
Hi all, I am beginner with cgi scripting and I am trying to make a cgi script that can upload a file, and work with it, or alternatively if there no file to upload is specified, use the input pasted in the form "text area". I now how to do the second one, but I am unable to deal with both inputs

Re: uploading files

2001-06-30 Thread Tim Thomas
On Sat, Jun 30, 2001 at 08:18:42PM +0100, Carmen Marincu wrote: > Hi - > I know that you can upload files in CGI. > But I was wondering if it is possible to upload all the files contained > in a given directory. > Does anyone know or did that ? perhaps you could hack this a bit to suit your purpo

uploading files

2001-06-30 Thread Carmen Marincu
Hi - I know that you can upload files in CGI. But I was wondering if it is possible to upload all the files contained in a given directory. Does anyone know or did that ? Thanks - Carmen

Re: Uploading files in binary

2001-06-29 Thread Adam Carson
I'll try that. Thanks. Adam Carson MIS Department Berkeley County, SC >>> "Brett W. McCoy" <[EMAIL PROTECTED]> 06/29/01 03:49PM >>> On Fri, 29 Jun 2001, Adam Carson wrote: > Does anyone have any advi

Re: Uploading files in binary

2001-06-29 Thread Brett W. McCoy
On Fri, 29 Jun 2001, Adam Carson wrote: > Does anyone have any advice for me? I am trying to load an MS Access > Database onto a server on my local intranet, but it needs to be > uploaded in binary instead of ASCII.This isn't exactly a Perl problem, > but Perl might have a solution. Why can't y

Uploading files in binary

2001-06-29 Thread Adam Carson
Does anyone have any advice for me? I am trying to load an MS Access Database onto a server on my local intranet, but it needs to be uploaded in binary instead of ASCII.This isn't exactly a Perl problem, but Perl might have a solution. Adam Carson