Uploading of documents and images not working