Hello,
I am using the file upload mod by Paul. The add.cgi after modifications works fine on one host and I have been using it for a while.
However, I recently moved this to another host and it is giving me an error. I tried to run it in telnet and see what the error is and I got a syntax error for the following line:
unlink "$upload_path/$_" foreach @uploads;
The above line is getting a syntax error.
When I comment it, the script does not give an error. Do you know why? Do you have an alternative or a fix?
Thanks in advance.
I am using the file upload mod by Paul. The add.cgi after modifications works fine on one host and I have been using it for a while.
However, I recently moved this to another host and it is giving me an error. I tried to run it in telnet and see what the error is and I got a syntax error for the following line:
unlink "$upload_path/$_" foreach @uploads;
The above line is getting a syntax error.
When I comment it, the script does not give an error. Do you know why? Do you have an alternative or a fix?
Thanks in advance.