Re: Another stupid question...

2003-02-11 Thread Richard Curtis
Richard Curtis wrote: This works fine, although I still have a problem. I build an array out of the filenames (taken from $newFileName) which is used to add entries for the files into a database. The problem is, when I use code such as : # this code is using perls DBI interface... $add_stat

Re: Another stupid question...

2003-02-11 Thread Josh Chamas
Richard Curtis wrote: This works fine, although I still have a problem. I build an array out of the filenames (taken from $newFileName) which is used to add entries for the files into a database. The problem is, when I use code such as : # this code is using perls DBI interface... $add_stateme

Re: Another stupid question...

2003-02-11 Thread Tim Pushor
Richard, I'm sorry, I too am stumped. Perhaps Josh can help shed some light.. Tim Richard Curtis wrote: Thanks for your post. I have gone over all of my code, and changed it to exactly how you do it. I have set "PerlSetVar FileUploadTemp 1" and restarted apache. All pages which upload a fil

Re: Another stupid question...

2003-02-11 Thread Richard Curtis
Thanks for your post. I have gone over all of my code, and changed it to exactly how you do it. I have set "PerlSetVar FileUploadTemp 1" and restarted apache. All pages which upload a file use: my $upload_file = $Request->{FileUpload}{filename}; # "filename" is the name of the form item. my $new

Re: Another stupid question...

2003-02-11 Thread Tim Pushor
Richard, I'm not quite sure why its doing what its doing. I have only done one real project with Apache::ASP that handles file uploads, but again, how I do it is: 1) Make sure you do a PerlSetVar FileUploadTemp 1 in httpd.conf - this will ensure that Apache::ASP actually downloads the file for

Re: Another stupid question...

2003-02-11 Thread Richard Curtis
Following is a post which I hope will clarify what I have been doing up until now, along with some questions regarding the correct way to do this. Until now, I have always handled file uploads in the following way : draw in HTML "". Then the form posts in on itself, and I use my $newFile = $R

Re: Another stupid question...

2003-02-10 Thread Josh Chamas
Richard Curtis wrote: Following is a post which I hope will clarify what I have been doing up until now, along with some questions regarding the correct way to do this. Until now, I have always handled file uploads in the following way : draw in HTML "". Then the form posts in on itself, and

Re: Another stupid question...

2003-02-10 Thread Richard Curtis
Well, this is what I dont understand :) if I do "$newFile = $Request->Form('filename')"; "print $newFile"; I get back a filename eg, "test.doc". The next thing I do is $Session->{uploaded_files} = $newFile; However... if I do "use Data::Dumper; print Dumper $newFile", I get back... $VAR1 = ble

Re: Another stupid question...

2003-02-10 Thread Richard Curtis
Well, this is what I dont understand :) if I do "$newFile = $Request->Form('filename')"; "print $newFile"; I get back a filename eg, "test.doc". The next thing I do is $Session->{uploaded_files} = $newFile; However... if I do "use Data::Dumper; print Dumper $newFile", I get back... $VAR1 = ble

Re: Another stupid question...

2003-02-10 Thread Josh Chamas
Richard Curtis wrote: Well, this is what I dont understand :) if I do "$newFile = $Request->Form('filename')"; "print $newFile"; I get back a filename eg, "test.doc". The next thing I do is $Session->{uploaded_files} = $newFile; However... if I do "use Data::Dumper; print Dumper $newFile", I get

Re: Another stupid question...

2003-02-10 Thread Richard Curtis
Well, this is what I dont understand :) if I do "$newFile = $Request->Form('filename')"; "print $newFile"; I get back a filename eg, "test.doc". The next thing I do is $Session->{uploaded_files} = $newFile; However... if I do "use Data::Dumper; print Dumper $newFile", I get back... $VAR1 = bless(

Re: Another stupid question...

2003-02-10 Thread Richard Curtis
E I dont do it like this. I post into the page, then "my $newFile = $Request->Form('filename')" gives me the handle/filename. I upload the file (using a perl function I wrote), then afterwards, set $Session->{new_file} = $newFile; I do all of the upload manually. I have a perl function

Re: Another stupid question...

2003-02-10 Thread Tim Pushor
Richard, How are you determining the filename? I looked back in a piece of code, and I am doing something like: my $fileup=$Request->{FileUpload}{upload_file}; my $browserfile=$fileup->{BrowserFile}; my $filehandle=$fileup->{FileHandle}; my $tempfile=$fileup->{TempFile}; I believe that $tempfil

Another stupid question...

2003-02-10 Thread Richard Curtis
OK, I am sorry for posting stupid questions, but I have been at this all night and got no-where. Right, I have a page which allows upload of files. The user uploads several files, and I cache the filename of the file they uploaded using the session. So, the session contains a list of filenames.