I have a php downloader as below
<form enctype="multipart/form-data" action="jsonlog.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> Send this file: <input name="file" type="file" /> <input type="submit" value="Send File" /> </form>
In jsonlog.php:
if($_FILES['file']['error']>0) { echo "Reading Error: " . $_FILES['file']["error"] . "<br />"; } else { code to process }
It passed my local host, but when I tried on the linux server, it always gave me an error:
UPLOAD_ERR_CANT_write Value: 7, failed to write the file to disk. Does anyone know how to solve it?
thanks
Yes, I checked the permissions on the tmp directory, see below
drwxrwxrwx 2 bitnami bitnami 4096 2011-09-21 13:34 tmp
I can create a new file at the tmp command line, for example
sudo vi test.txt
the bootloader still returns a PLOAD_ERR_CANT_write error.
There is another thing that I donβt understand: I log in as bitnami, I have to have full control over the tmp folder, but I cannot write files to tmp with the command without sudo
vi t.txt
I cannot save the changes. It returns this error
E514: write error (file system full?) WARNING: Original file may be lost or damaged don't quit the editor until the file is successfully written!
Here is the output of the df command
Filesystem Size Used Avail Use% Mounted on /dev/sda1 9.9G 9.4G 0 100% / devtmpfs 854M 116K 854M 1% /dev none 871M 0 871M 0% /dev/shm none 871M 48K 871M 1% /var/run none 871M 0 871M 0% /var/lock none 871M 0 871M 0% /lib/init/rw /dev/sda2 335G 195M 318G 1% /mnt
but when I run sudo du -sh, the output
/$ sudo du -sh / du: cannot access `/proc/32760/task/32760/fd/4': No such file or directory du: cannot access `/proc/32760/task/32760/fdinfo/4': No such file or directory du: cannot access `/proc/32760/fd/4': No such file or directory du: cannot access `/proc/32760/fdinfo/4': No such file or directory 855M /
This is far from complete. Can anyone tell me why?