Re: cgi upload -> XMLin

2008-02-13 Thread Jay Savage
On Feb 13, 2008 12:52 AM, Brent Clark <[EMAIL PROTECTED]> wrote: > Chas. Owens wrote: > > > The XMLin method takes a string, file, or file handle as its argument. > > Just pass $upload_filehandle to it: > > > > my $ref = $xs->XMLin($cgi->upload("filename")); > > print $xs->XMLout($ref); > > Hi > >

Re: cgi upload -> XMLin

2008-02-13 Thread Brent Clark
Chas. Owens wrote: The XMLin method takes a string, file, or file handle as its argument. Just pass $upload_filehandle to it: my $ref = $xs->XMLin($cgi->upload("filename")); print $xs->XMLout($ref); Hi Thanks for replying. To be honest, I did try that, but then i was getting this message.

Re: cgi upload -> XMLin

2008-02-12 Thread Gunnar Hjalmarsson
Brent Clark wrote: I would like to upload a xml file, and would like the file to sent directly to XMLin(). Im trying to find a way of not have to create the file in /tmp, Then assign some other path to $CGITempFile::TMPDIRECTORY As Chas mentioned, you can pass $upload_filehandle to XMLin().

Re: cgi upload -> XMLin

2008-02-12 Thread Chas. Owens
On Feb 12, 2008 8:43 AM, Brent Clark <[EMAIL PROTECTED]> wrote: > Hi > > Heres my silly Q for the day > > I would like to upload a xml file, and would like the file to sent directly > to XMLin(). > > Im trying to find a way of not have to create the file in /tmp, and heres my > working code. > >

Re: CGI upload problem on IE

2005-01-29 Thread Bob Showalter
Yw Chan ( Cai Lun e-Business ) wrote: However, the situation is that ehe spaces not from my filename but from the Windows XP default of C:\Documents and Settings\Default user\. etc. I guess in an overwhelming web-based environment using Windows at the browser side, most people would come across

Re: CGI upload problem on IE

2005-01-29 Thread Bob Showalter
Yw Chan ( Cai Lun e-Business ) wrote: However, the situation is that ehe spaces not from my filename but from the Windows XP default of C:\Documents and Settings\Default user\. etc. I guess in an overwhelming web-based environment using Windows at the browser side, most people would come across

Re: CGI upload problem on IE

2005-01-29 Thread Yw Chan ( Cai Lun e-Business )
However, the situation is that ehe spaces not from my filename but from the Windows XP default of C:\Documents and Settings\Default user\. etc. I guess in an overwhelming web-based environment using Windows at the browser side, most people would come across this issue. I'm wondering if ther

Re: CGI upload problem on IE

2005-01-29 Thread Alfred Vahau
> Unix allows spaces in file names. Agree. But for a Unix-centric person like me operating in an otherwise all Windows environment, I've found that the use of space in Windows filenames is more liberal than in Unix in so far as the use of commands go. So for anyone starting with Windows and headi

Re: CGI upload problem on IE

2005-01-29 Thread Bob Showalter
Alfred Vahau wrote: Hi, My workaround in Windows to the space in file names (which the *nix don't allow) are the following: Huh? Unix allows spaces in file names. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: CGI upload problem on IE

2005-01-29 Thread Alfred Vahau
Hi, My workaround in Windows to the space in file names (which the *nix don't allow) are the following: (1) Use an underscore instead of space in file names (2) Surround the file name with quotes if spaces are retained (3) Use the hex representation of space (%20) in file names HTH, alfred, Yw Ch

RE: Cgi upload

2003-09-09 Thread Jeff 'japhy' Pinyan
On Sep 9, Paul Kraus said: >I have one question though using the while ( <$fh> ) >Works great. Is there a reason I would want to do while (read ( $fh, >$buffer, $buffer_size) If you want to read the optimal number of bytes at a time. In a simple application, there's really no reason to do one ov

RE: Cgi upload

2003-09-09 Thread Paul Kraus
buffer, $buffer_size) Is there an advantage to either one of these? -Original Message- From: Dan Muey [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 11:48 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Cgi upload > This should be a simple little script. > > Bu

RE: Cgi upload

2003-09-09 Thread Dan Muey
> This should be a simple little script. > > But it errors out every time. > > Query: > test.cgi?fname=&lname=&file=C%3A%5CDocuments+and+Settings%5Cpd > k%5CDeskto > p%5Cascii-full.gif > > Scrpit > -- > #!/usr/bin/perl -wT > > use strict; > use warnings; > use CGI; > use constant BUFFER_S

Re: Cgi upload

2003-09-09 Thread Jeff 'japhy' Pinyan
On Sep 9, Paul Kraus said: >Query: >test.cgi?fname=&lname=&file=C%3A%5CDocuments+and+Settings%5Cpdk%5CDeskto >p%5Cascii-full.gif That's not a file upload. That's a simple get query. A query with a file upload takes place over POST, not GET. Furthermore, you need to specify the encoding type in