I wrote Perl code for the client upload of a binary image file and got it to work on the Apache offline emulator for my windows PC. Trying to use this code on FreeHostia I get the following error message:
Software error:
CGI open of tmpfile: Read-only file system
For help, please send mail to the webmaste (
{email: "support at freehostia dot com}),
giving this error message and the time and date of the error.
My research on the Internet indicates that Perl creates a temporary file of the binary file before storing it in the target folder but needs a temporary folder to put it in that has the appropriate UNIX permissions (ie. 777). I created a tmp file in my own space (permission 777) but that does not work even when I include in the code the CGI pragma that searches for this very file as a temporary file. I read on one web page that all the permissions in the directory structure leading to the temporary file must be 777 for the 'tmp' file to function as a receiver for the temporary file but the 'www' directory in my space is 755 and I cannot change it.
My Perl code stops and generates the error message when it reaches the following command:
my $query = new CGI;
I would appreciate anyone's help in telling me what I am missing.
Thanks,
Mark