You're right, I'm calling this via inside a OO Perl Module, its a simple wrapper to the DB_File module, but it also does a bunch of other things. This is for a simple web-based database admin screen. Info from a form is sent to a script, that calls this Module kinda like
my $input = CGI -> new();
my $image = $input -> param('image');
# some more form fields fetched through param()...
my $info = new -> JustinDb();
$info ->savethis(-name => 'image',
-value => $image);
the _file_upload() is always internal. This module is one of many, and the module itself 'knows' what kind of form field the info was sent from. Yes I'm tricky :) That part is checking out fine. it looks to see if this particular info is handed to it from a fileupload field, and if it is, saves the file to the $img_dir variable.
I've been fiddling with this some more, and filenames called 1photo.gif will work, but photo.gif will not work!
this is incredibly weird. This is my problem and I'm still scratchin my head.
-justin simoni
!skazat! |