The problem is that your folder is not having write permission. And
because of that it is not uploading the file.
You have to give it write permission. You can also use chmod for giving
write permission to that folder.
Also check who is having that write permission for that folder. When you
upload the file from code it is uploaded as