senorsquiid
IS-IT--Management
I've written a script to upload and rename 2 files (jpegs) to our company website, and I've enver worked with using File::Copy on multiple files before, and the rename feature might be wack too. It's posted below, so does anyone have any suggestions?
Thanks.
#!/usr/bin/perl -w
use strict;
use CGI;
use File::Copy;
my $q = new CGI();
my $adid = $q->param("advertid");
my $File = $q->param("filex");
my $File2 = $q->param("filez");
my $Pic = $q->tmpFileName($File);
my $Pic2 = $q->tmpFileName($File2);
copy($Pic,"/home/websites/papacks.com/htdocs/Images/Cards/$File");
copy($Pic2,"/home/websites/papacks.com/htdocs/Images/Cards/$File2");
rename "$File","$adid_front";
rename "$File2","$adidID_back";
print "What a cheezy victory for you fnord!\n";
Thanks.
#!/usr/bin/perl -w
use strict;
use CGI;
use File::Copy;
my $q = new CGI();
my $adid = $q->param("advertid");
my $File = $q->param("filex");
my $File2 = $q->param("filez");
my $Pic = $q->tmpFileName($File);
my $Pic2 = $q->tmpFileName($File2);
copy($Pic,"/home/websites/papacks.com/htdocs/Images/Cards/$File");
copy($Pic2,"/home/websites/papacks.com/htdocs/Images/Cards/$File2");
rename "$File","$adid_front";
rename "$File2","$adidID_back";
print "What a cheezy victory for you fnord!\n";