Hi All,
I'm getting an error when trying to upload any type of file via Content>Files>Add File. The error reads "The file filename could not be saved. An unknown error has occurred. The file in the Upload a new file field was unable to be uploaded." This site was just ported from a localhost where it worked fine to a live server.
I've read through many threads and most seem to indicate a permissions problem. I've checked that all directories are configured properly. Public files are set as sites/default/files; private files are set as sites/default/files/private; and temporary is set as sites/default/files/tmp. Also I can upload to the files directory via ftp without any problems.
Then I found this error in the server logs:
[Tue Mar 27 10:49:26.932464 2018] [proxy_fcgi:error] [pid 20750:tid 140070898026240] [client nn.nnn.nn.nn:63784] AH01071: Got error 'PHP message: PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0\n', referer: http://ipaddress.com/file/add
Any ideas what might be wrong here?
Thanks, CJ
Comments
See PHP temp setting.
In order to upload files this variable needs to be set to a value that can be used by the web server. See PHP.INI for its current setting, suspect not set due to Unknown. Set it and make sure it is writable by the web server.
Thank you. I'll have to ask
Thank you. I'll have to ask the server admin to take a look. I don't have access to the php.ini file.