monkeywithagun
Technical User
I've been using cgi-lib.pl (a library for parsing input), and i'm quite happy with it.
I've gotten almost everything i want to work with so far. Using cgi-lib.pl and code like that which is found at: I can upload a file.
The problem comes from the fact that it uploads the file with a new "secure" name. No big deal, I though, I'll just rename it. But i havn't been able to get that to work. The code i entered was:
rename(images/$cgi_data{'upfile'},images/$cgi_cfn{'upfile'});
I'm assuming that line is wrong, because everything else works. Could someone please help me fix it?
P.S. $cgi_data{'upfile'} and $cgi_cfn{'upfile'} are the secure and origonal file names, respectivly.
I've gotten almost everything i want to work with so far. Using cgi-lib.pl and code like that which is found at: I can upload a file.
The problem comes from the fact that it uploads the file with a new "secure" name. No big deal, I though, I'll just rename it. But i havn't been able to get that to work. The code i entered was:
rename(images/$cgi_data{'upfile'},images/$cgi_cfn{'upfile'});
I'm assuming that line is wrong, because everything else works. Could someone please help me fix it?
P.S. $cgi_data{'upfile'} and $cgi_cfn{'upfile'} are the secure and origonal file names, respectivly.