file upload issues!

2011-06-14 Thread Rahul!!
Hi All, Actually I am trying to store the file a user has uploaded through web- page to database. But its not getting updated fully and it's showing only few bytes. Point here is user will upload exe or dll and I have to store it in DB. I am highlighting the code snippet, //WEB PAGE CODE Path

file upload issues!

2011-06-14 Thread Rahul!!
Hi All, Actually I am trying to store the file a user has uploaded through web- page to database. But its not getting updated fully and it's showing only few bytes. Point here is user will upload exe or dll and I have to store it in DB. I am highlighting the code snippet, //WEB PAGE CODE Path

Re: text file upload ... work around wide characters?

2007-05-23 Thread Mumia W.
ess my question wasn't clear. The issue is a file upload that is tagged as text/html but has wide characters in it. The file doesn't make it out of the browser right AFAICT. (If this is obviously incorrect, please post the correction!) A little more pain and research let me to find this:

RE: text file upload ... work around wide characters?

2007-05-23 Thread Michael Higgins
sounds like that they may have special meanings in either > the scripting language or in the html output. Hmm. I guess my question wasn't clear. The issue is a file upload that is tagged as text/html but has wide characters in it. The file doesn't make it out of the browser right AFAICT.

text file upload ... work around wide characters?

2007-05-23 Thread Michael Higgins
Hello, List-ers -- I've come across a problem, unsure where to ask, so subscribed here. I upload a file through a browser. It's a '.txt' file and it comes as text/html. However, I've found some hyphen and single-quote like characters that are in this text file are from a higher codepoint... or s

Re: File upload question

2004-07-27 Thread Sean Davis
Bob, Thanks. That was the issue. Sean On Jul 27, 2004, at 1:31 PM, Bob Showalter wrote: Sean Davis wrote: I am trying to write a toy script that will ask for an upload file and then echo that file back to the user on the browser. However, if I do this all in one script like the following, I get n

RE: File upload question

2004-07-27 Thread Bob Showalter
Sean Davis wrote: > I am trying to write a toy script that will ask for an upload file and > then echo that file back to the user on the browser. However, if I do > this all in one script like the following, I get no echoed file. > However, if I instead use a separate HTML form and submit to my >

Re: File upload question

2004-07-27 Thread Wiggins d Anconia
> On Tue, Jul 27, 2004 at 12:37:11PM -0400, Sean Davis wrote: > > if ($q->param('upload_file')) { > > my $fh=$q->upload('upload_file'); >^^ > > Perhaps that should be param, not upload. I'm not familiar with an > upload method in the CGI module. > > Please check the docs,

Re: File upload question

2004-07-27 Thread T. Raymond
Hi Sean, I'm not sure but try taking out "$q ->" in front of your print statements. i.e.: print header(); my $value=$q->param('upload_file'); Also, in the above you set the value of my $value but then do not use it elsewhere in your script. In the below you end up using the value of my $value.

Re: File upload question

2004-07-27 Thread William McKee
On Tue, Jul 27, 2004 at 12:37:11PM -0400, Sean Davis wrote: > if ($q->param('upload_file')) { > my $fh=$q->upload('upload_file'); ^^ Perhaps that should be param, not upload. I'm not familiar with an upload method in the CGI module. William -- Knowmad Services Inc. http:/

File upload question

2004-07-27 Thread Sean Davis
I am trying to write a toy script that will ask for an upload file and then echo that file back to the user on the browser. However, if I do this all in one script like the following, I get no echoed file. However, if I instead use a separate HTML form and submit to my script, it works fine.

RE: File upload

2004-03-19 Thread Ash Singh
Alternatively, I think your form is missing "multipart/form-data" hence the error "cgi-lib.pl: reached end of input while seeking boundary of multipart. Format of CGI input is wrong." Basically your form does not have the correct boundaries which is essential for a file upl

RE: File upload

2004-03-19 Thread Ash Singh
; while ($bytesread=read($filename,$buffer,1024)) { print OUTFILE "$buffer"; } close(OUTFILE); $filename = undef; $path = undef; $newFileName = undef; $FiletoWrite = undef; } -Original Message- From: Vadiraj C S [mailto:[EMAIL PROTECTED] Sent: 19 March 2004 12:19 P

File upload

2004-03-19 Thread Vadiraj C S
Hello List, I'm trying to upload a file from a browser to the server thru cgli_lib I get this message while doing it. " cgi-lib.pl: reached end of input while seeking boundary of multipart. Format of CGI input is wrong." " invalid method in request. " The method is POST which is ess

Re: Perl Script to detect a file upload

2004-03-05 Thread Teresa Raymond
Hi Ash, You can put log entry code into your file upload script and email code to notify you -- or write separate modules that your upload script calls thru use or require. If you mean that people are uploading onto your server without your upload script, then I don't know what you shou

Perl Script to detect a file upload

2004-03-05 Thread Ash Singh
Hi, please could anyone help me with information regarding a file upload, when the user uploads a file on my server, I need a perl script to automatically detect the new file uploaded and kick off a series of task, the upload is done in an asp platform and it's a NT server.   Tha

Help with file upload

2004-02-15 Thread Serguei Krivov
Hi, I would appreciate if someone could help me out on a file upload subroutine I shamelessly copied and modified from CGI Programming with PERL by S. Gundavaram et al. The program is as follows #!/usr/bin/perl # CGI Programming with Perl by Shishir Gundavaram et al Chapter 5 CGI.pm: File

Re: File upload - probably simple..

2002-12-23 Thread Octavian Rasnita
TECTED]> To: "beginners-cgi" <[EMAIL PROTECTED]> Sent: Monday, December 23, 2002 7:08 PM Subject: RE: File upload - probably simple.. If you're only uploading jpgs then you could also write this as my ($name) = $path =~ /\w+\.jpg$/i; since a regexp match returns an array,

RE: File upload - probably simple..

2002-12-23 Thread Peter Kappus
grabbing various elements out of a match ie. to grab the filename and extension you'd use: my ($name, $ext) = $path =~ /(\w+)\.(\w+)$/i; good luck. -p -Original Message- From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 22, 2002 10:17 AM To: james lu

Re: File upload - probably simple..

2002-12-22 Thread Octavian Rasnita
uot;beginners-cgi" <[EMAIL PROTECTED]> Sent: Sunday, December 22, 2002 12:56 AM Subject: File upload - probably simple.. hey, do you have a solution to this? I need to upload a file, but i just want the file name, not the entire path. Currently, it saves the actual file on the serve

File upload - probably simple..

2002-12-22 Thread james lundeen
hey, do you have a solution to this? I need to upload a file, but i just want the file name, not the entire path. Currently, it saves the actual file on the server as: G:\ISIR\ISIR2002gallery\images\isir1.jpg as the FILENAME!!! i just want it to save as "isir1.jpg" or whatever the filename is

Re: File upload problem

2002-11-28 Thread Stelian Iancu
On Jo, 2002-11-28 at 09:55, Stelian Iancu wrote: > Hello! > > I have a simple form with a file upload field. Then, I want to save the > uploaded file into a directory. So here it the code: > > #!/usr/bin/perl > > use strict; > usw warnings; > use CGI; > >

File upload problem

2002-11-27 Thread Stelian Iancu
Hello! I have a simple form with a file upload field. Then, I want to save the uploaded file into a directory. So here it the code: #!/usr/bin/perl use strict; usw warnings; use CGI; my $q = new CGI; my $filename = $q->upload('fisier'); my $buffer; open (OUTFILE, ">>

Re: http-file-upload

2002-08-22 Thread zentara
On Wed, 21 Aug 2002 16:22:10 +0200, [EMAIL PROTECTED] (Alex) wrote: > I was thinking of using the "IO::Socket::INET" module - is that > possible? if so, how? > If you just want to upload a file to your cgi program, but don't want to deal with a web form to do it, use LWP in a script.

Re: http-file-upload

2002-08-21 Thread Connie Chan
) # if content_type exist, that's a multi-part form. # That is, for file upload. { binmode (STDIN) ; read (STDIN, my $data, $ENV{CONTENT_LENGTH}); print "Content-type: text/html\n\n"; print $data; # Hmm... can you read what are they ? }

Re: http-file-upload

2002-08-21 Thread Brent Michalski
TECTED] cc: (bcc: Brent Michalski/STL/MASTERCARD) 08/21/02 09:22 AMSubject: http-file-upload Please resp

http-file-upload

2002-08-21 Thread alex
Hi, we all know already, what it looks like, when we have a form like this: will be this as a link: http://bla.net/cgi-bin/blabla.cgi?AREA=1&EXT=bla ok but, what does it look link, when we are uploading a FILE? my goal is it to log in my we

Re: File upload question

2002-07-29 Thread zentara
On Sun, 28 Jul 2002 00:51:06 -0700 (PDT), [EMAIL PROTECTED] (Nate) wrote: >i'm writing a website that requires an upload for pictures. I have figured out how to >get the image, upload it to the correct dirctory and save successfully, but the >problem comes with the fact that i have to specify t

Re: File upload question

2002-07-28 Thread Janek Schleicher
Nate wrote at Sun, 28 Jul 2002 09:51:06 +0200: > i'm writing a website that requires an upload for pictures. I have figured out how >to get the > image, upload it to the correct dirctory and save successfully, but the problem >comes with the > fact that i have to specify the filename. i want to

File upload question

2002-07-28 Thread Nate
..grey { background-color: #cc; }Hello. I don't know how dumb this is going to sound, but here goes: i'm writing a website that requires an upload for pictures. I have figured out how to get the image, upload it to the correct dirctory and save successfully, but the problem comes with the

RE: File upload problems

2002-03-11 Thread James Kelty
Thanks! -James -Original Message- From: fliptop [mailto:[EMAIL PROTECTED]] Sent: Monday, March 11, 2002 4:48 PM To: James Kelty Cc: [EMAIL PROTECTED] Subject: Re: File upload problems James Kelty wrote: > I have written the below script for file uploading, but the script seems

Re: File upload problems

2002-03-11 Thread fliptop
James Kelty wrote: > I have written the below script for file uploading, but the script seems to > be a little fickle. > Very small text files upload with no problem at all, but slightly larger > (76k) Word docs and Excel spread sheets > seem to make the script time out. I can see the /tmp/CGIxxx

File upload problems

2002-03-11 Thread James Kelty
>"http://nuke.theashlandagency.com/intranet"},'here'); print "to view all files."; print $cgi->br; print "Go "; print $cgi->a({href=>"http://nuke.theashlandagency.com/upload.html"}, 'here'); print "to

File upload

2002-03-04 Thread Polikarpov Cyrill
Hi everyone!   I tried to make file-upload using this block. It works but uploaded file can't be open after ulploading ... Any ideas?   chmod(0777, $datadir);  my $new_file = $datadir.$file_name;  my ($buffer, $bytes_read, $size);  open(OUTFILE, ">$new_file") or die

File Upload Problem on IE and Opera

2002-02-07 Thread Elwyn Chow
Hi Everyone, I'm writing a program that allows people to send emails with attachments via a web page. It stores these attachments encoded on the hard disk like they would look in the final text file that gets send. For some reason, IE and Opera isn't reading a value from

Re: File Upload via URL

2002-01-07 Thread Brent Michalski
If i remember correctly, this is also not allowed. It would be a big security risk to allow something like this. The same goes for the "file upload" box that you put on an HTML form... You cannot prefill the values in it...

Re: File Upload via URL

2002-01-07 Thread Curtis Poe
--- "Rafala, Michael" <[EMAIL PROTECTED]> wrote: > I want to call my file upload cgi program and upload a file via a URL rather > than using a Form on a Web page. > > My script works via the upload form, which looks like this: > > > > > > >

File Upload via URL

2002-01-07 Thread Rafala, Michael
I want to call my file upload cgi program and upload a file via a URL rather than using a Form on a Web page. My script works via the upload form, which looks like this: But when I try this URL: http:\\myServer\cgi-bin\upload.cgi?upload_file="c:\myfile" the script gets the fil

specifying a file upload field for command-line debugging

2001-11-26 Thread Dmi
hey guys, here's a senario: I have an application that requires you upload a file. I would like to test/debug it it on the command line. How do i specify the file to upload from the command line? How do i tell the debugger to read the contents to the file? something bugging me for a while... G

URGENT! - File upload

2001-11-12 Thread shilpis
Hi, I am a bit lost with file upload in cgi. Please have a look at the following code and explain me why its only my output file only has the last portion (or missing data) of the file being uploaded. Also, I fail to upload doc or pdf files. # CODE ## $upfile

Urgent IIS server - File Upload problem.

2001-11-11 Thread Rajeev Rumale
Dear friends, I have received this error while uploading a file via cgi. The code used has been working fine on the internal servers but gives the following error on the ISP server. Software error: CGI open of tmpfile: Permission denied For help, please send mail to this site's webmaster, giv

Re: Re: File upload problems still!

2001-08-23 Thread Ryan Davis
C Haslock <[EMAIL PROTECTED]> Cc: Ryan Davis <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 9:37 PM Subject: Re: Re: File upload problems still! > > > In the end, they are going to put on a resume CD, with a VB front end, > and Word > > is used to do keyword sea

Re: Re: File upload problems still!

2001-08-23 Thread Mo Holkar / UKG
At 17:31 23/08/01, Ryan wrote: >^M's galore. The 'auto' setting on WS_ftp must not do much. By default WS_ftp will only be expecting files with certain extensions (eg. .txt, .htm) to be ASCII. So 'auto' will upload your .cgi or .pl files as binary. You can change these defaults on the Options

Re: Re: File upload problems still!

2001-08-23 Thread ryepup
> >cat -vet script.cgi | more > ^M's galore. The 'auto' setting on WS_ftp must not do much. >in-place edit: > >perl -pi -e 's/\r//g' script.cgi > >Just make sure to back up your script, first. worked like a charm, eliminating all the ^M's When I tried it out, the program still crash

Re: File upload problems still!

2001-08-23 Thread Curtis Poe
--- Ryan Davis <[EMAIL PROTECTED]> wrote: > Curtis+List, > > I checked out the CGI::Safe.pm module, and so far, I'm having the same > problem. The script goes to "Just about to get your resume!"; then quits. > I don't have access to server logs, so I don't know what is going on. I > think my se

Re: Re: File upload problems still!

2001-08-23 Thread ryepup
>Roger C Haslock wrote: >> >> Just an aside, but what is the point of format => 'Application/msword' ? >> >> Anyone can rename their file to look like '*.doc', and you can only >> determine the file content when you have uploaded it ( at which point you >> SHOULD check). > >not to mention yo

Re: Re: File upload problems still!

2001-08-23 Thread ryepup
>Roger C Haslock wrote: >> >> Just an aside, but what is the point of format => 'Application/msword' ? >> >> Anyone can rename their file to look like '*.doc', and you can only >> determine the file content when you have uploaded it ( at which point you >> SHOULD check). > >not to mention you

Re: File upload problems still!

2001-08-23 Thread fliptop
Roger C Haslock wrote: > > Just an aside, but what is the point of format => 'Application/msword' ? > > Anyone can rename their file to look like '*.doc', and you can only > determine the file content when you have uploaded it ( at which point you > SHOULD check). not to mention you may offend

Re: File upload problems still!

2001-08-23 Thread Roger C Haslock
ssage - From: "Ryan Davis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 4:27 AM Subject: File upload problems still! > Curtis+List, > > I checked out the CGI::Safe.pm module, and so far, I'm havin

File upload problems still!

2001-08-22 Thread Ryan Davis
Curtis+List, I checked out the CGI::Safe.pm module, and so far, I'm having the same problem. The script goes to "Just about to get your resume!"; then quits. I don't have access to server logs, so I don't know what is going on. I think my server is running Apache, and I've been snooping to try

Re: File upload problems

2001-08-16 Thread Curtis Poe
--- Ryan Davis <[EMAIL PROTECTED]> wrote: > Hey everyone, here's my problem: > > I have a script to take information and put it in a database, and also upload a >resume. The > entire thing works on my test machine (Win98/Activeperl/Apache) but doesn't work on >my actual > machine (Digital Unix

File upload problems

2001-08-16 Thread Ryan Davis
Hey everyone, here's my problem:   I have a script to take information and put it in a database, and also upload a resume.  The entire thing works on my test machine (Win98/Activeperl/Apache) but doesn't work on my actual machine (Digital Unix/Perl5+/Apache).    I've attached the entire scri