I've encounered an error that I tried to avoid as long as possible but now there is no way around it for me, when I use the "Media" tab on my backend and I try to upload a file, I select it and the upload begins as normal and finishes but when the upload is over the file is not in my server and it is not shown on the media tab either.
Working with the blog plugin from rainlab, I encountered another error that may be linked to the previous one, I upload a picture and when the upload is over i get the following error message: "File missing from request" and the file is not uploaded. It works sometimes, but it is a hit and miss situation most of the time.
Hi - I just encountered a similar situation and for me it seems to be related to the PHP upload limit on my server. If I reduced the image size it would work and if I increase the upload limit in PHP it works.
Hope it helps.
Sorry if necrobumping, but beluca answer is not the only possible one and the issue may be harsh to figure out.
Try to check your ini_get('upload_tmp_dir'). If it's /tmp, then maybe some other process is filling up your tmpfs /tmp partition (tmpfs partitions are in RAM and are limited in size) and php cannot save files there when it's full and everything works when some space is freed.
I had this issue on ArchLinux when I was installing big apps from AUR - they download to /tmp and it was 100% occupied while i was testing frontend upload in October, HHVM error log guided me to /tmp.
Things to check in php.ini
on CyberPanel I fixed it by following steps:
- Added made sure PHP version I am using is the same for what is for my website, i.e. 7.3
- Turned on file_uploads "ON" (Most important) (this is where everything started working good)
- Adding upload_tmp_dir dir might work but for me turning on only file_uploads worked
- Added /tmp directory to OpenLiteSpeed > Server Configuration > File Uploads
If it doesn’t then don’t fret, there are many ways you can increase the max upload size in WordPress. I am going to highlight the following ways in this tutorial. You can easily increase media file maximum upload size in WordPress, By default, the maximum upload size in WordPress ranges from 2MB to 150MB.
1-6 of 6