I had trouble fixing the file uploading, but then I ran chmod a+w /var/www
and it worked - files were being uploaded to my specified directory.
However, my script also generates a thumbnail immediately after the file is uploaded. This part is not working. I'm assuming that the files uploaded by the script are locked (they have a small lock appearing near them when going to the directory manually) and it can't grab the uploaded file and create a new thumbnail file based on it.
I'm not getting any error or something.
How do I edit the permissions in the way that lets me create new files using "locked" files?
/var/www
world writeable! – terdon May 13 '14 at 15:39