Re: I have problems with download scripts, it's trying to print instead of saving the file
You should always check the return value of open(). Try:
open(UPLOADFILE, ">$upload_dir/$filename")
or die "Can't write to '$upload_dir/$filename': $!\n";
I bet the webserver is running as a user that doesn't have permission
to write to the specified directory.
.
Relevant Pages
- Re: backup operation: back up the files belong to www-run
... then the script cannot read the files web visitors uploaded (permission ... I try to let my backup script connect to the webserver as root. ... webserver forbids root login, thus I may need to configure sshd to allow ... (comp.os.linux.security) - Re: Computer Misuse Act
... >>I would argue that the only part of a webserver that has implied ... >>permission for the public to access is the page that comes up when you ... >used in the config files - 'public'. ... >you don't want to publish something, don't put it on a public server. ... (uk.legal) - Check directory permissions
... permission to write to the directory before letting the script try. ... while other suggested using GetAtrr(). ... only seems to want to tell me that the specified directory is in fact ... (microsoft.public.excel.programming) - Re: Computer Misuse Act
... >>trespass because they tried to go into a part of your house you didn't ... >I would argue that the only part of a webserver that has implied ... >permission for the public to access is the page that comes up when you ... (uk.legal) - Re: You dont have appropriate permission to perform this operation.
... > In Outlook 2003 when I click on send and recieve it gaves me following ... > "You dont have appropriate permission to perform this operation." ... Prev by Date: ... (microsoft.public.outlook) |
|