Is there any way of using the file upload mod with DB SQL 1.02? It seems there have been a few threads discussing it, but noone in particular seems to have a solution. Any help would be greatly appreciated....
Oct 3, 2001, 1:07 PM
Veteran (19537 posts)
Oct 3, 2001, 1:07 PM
Post #4 of 6
Views: 2748
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....
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....
Oct 5, 2001, 3:03 PM
Novice (10 posts)
Oct 5, 2001, 3:03 PM
Post #5 of 6
Views: 2722
OK. I am able to get the file upload to work fine. I have 2 smaller issues that I am trying to resolve. First, I can't get the delete function to work. When I delete a listing, the associated image is NOT deleted. Second, When I modify a record, I get a strange confirmation, with a table that includes every image from every record. You past and future help is greatly appreciated.