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. > >

cgi upload -> XMLin

2008-02-12 Thread Brent Clark
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. my $filename = $cgi->param("filename"); #my $filename =~ s/.*[\/\