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
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
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
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
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
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
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
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
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
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
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(
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
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
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.
14 matches
Mail list logo