Are you sure the directory in which you are uploading data has enough permission?
I think you may not have write permissions on the remote system to upload in the directory.
You can not give write permission as anonymous.
First log in as a owner and give write permission to directory
# chmod -R 777 /path/of/dir
now Try to upload file as anonymous.