error uploading files in private messaging plugin

Every time I try to upload a file when composing a message using the private messaging plugin, I get an error in upload, even if the file name does not contain spaces. how can this problem be solved