I tried to get around the producing output bit by having the validate_upload sub print a bit of html thinking that would satisfy the server gods, but no luck. Then I tried having it call a sub &add_success; but that didn't seem to work either. I'll go back and try it again - you know how it gets after you've modified a script so many times you lose track of all of the little changes. I need to start over fresh.
In the meantime, I copied to whole sub into a separate cgi script and tried to get it to work as a stand alone script (see attached). I can get it to write the file to the server but it comes out "0" in size which tells me it's not really uploading anything.
I've noticed that I'm not getting the values from the input form and I'm not sure why. It works for me locally - I'm sure it's going to be something obvious.
You can see where I was hacking around trying to get variables to print in order to troubleshoot it by "hardcoding" variable values, etc.
Check it out and if you notice anything extremly stoopid let me know. Thanks.
In the meantime, I copied to whole sub into a separate cgi script and tried to get it to work as a stand alone script (see attached). I can get it to write the file to the server but it comes out "0" in size which tells me it's not really uploading anything.
I've noticed that I'm not getting the values from the input form and I'm not sure why. It works for me locally - I'm sure it's going to be something obvious.
You can see where I was hacking around trying to get variables to print in order to troubleshoot it by "hardcoding" variable values, etc.
Check it out and if you notice anything extremly stoopid let me know. Thanks.