Hello!
I am suddenly having an issue on multiple EE 7.5+ sites where, intermittently, random images cannot be uploaded and return the error: “The file could not be written to disk.”
This happens with File and File Grid fieldtypes in the CP Publish Entry form.
I have tried various combinations of disabling XXS filtering both in the CP and through Config Overrides. This does not change anything.
The only possible anomaly I see is when I check PHP Info in the CP, “upload_tmp_dir” says “no value.”
However, running echo sys_get_temp_dir() . PHP_EOL; in an independent .php file returns ‘/tmp ’ as expected.
There has been one instance where the client received the error on attempted upload, but I was able to upload the same file they emailed to me. This was not the case for a different file they had the same issue with.
Set Up:
ExpressionEngine 7.5.5
PHP 7.2 and 8.2
Exif Enabled
memory_limit: 768M
post_max_size: 512M
upload_max_filesize: 256M
I can FTP files to the upload Dir and sync the folders in the CP and that works fine, but kinda clunky. No way I can get one of these clients to do that.
Any help or insights would be much appreciated!
I guess this is related to https://expressionengine.com/forums/topic/254110/cant-upload-1mb-file-in-control-panel-regardless-of-post-upload-size-ee-v-7.3.14-php-8.2 https://expressionengine.com/forums/topic/254108/ee7.5.5-xampp-file-manager-unable-to-upload-images-above-25kb https://expressionengine.com/forums/topic/254099/error-on-upload-to-channel-images-field https://github.com/ExpressionEngine/ExpressionEngine/issues/4600 https://github.com/ExpressionEngine/ExpressionEngine/issues/4503
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.