Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [Explosivo] file upload

Quote Reply
Re: [Explosivo] file upload In reply to
Ok, well there is another way to get around the problem but it is definitely not a great way, however it should work.

1) Add enctype='multipart/form-data' into your add/add error forms

2) In sub parse before any other code add:

use CGI qw(:standard);

my $in = new CGI;

...and then insert the code to do the uploading in an if block so it is ignored if there is no file to upload (using $in->param('file_field') to grab the file).

Then under that add:

$in = undef;

Then that should leave you with the rest of the parse sub below which will run as normal....

Last edited by:

RedRum: Oct 3, 2001, 1:08 PM
Subject Author Views Date
Thread file upload Explosivo 3378 Oct 3, 2001, 8:21 AM
Thread Re: [Explosivo] file upload
Paul 3240 Oct 3, 2001, 8:35 AM
Thread Re: [RedRum] file upload
Explosivo 3235 Oct 3, 2001, 12:52 PM
Thread Re: [Explosivo] file upload
Paul 3233 Oct 3, 2001, 1:07 PM
Thread Re: [RedRum] file upload
Explosivo 3208 Oct 5, 2001, 3:03 PM
Post Re: [Explosivo] file upload
ktt 3148 Oct 31, 2001, 11:57 AM