hello,
This issue could be related to server settings or limitations. Here are a few steps you can take to troubleshoot:
Server Configuration: Check the PHP configuration on your server. Increase the upload_max_filesize and post_max_size values in your php.ini file to accommodate larger file uploads.
.htaccess File: Ensure that there are no restrictions set in the .htaccess file. Some hosting providers might have restrictions in place that override the PHP settings. You can try adding or modifying the following lines in your .htaccess file:
php_value upload_max_filesize 512M
php_value post_max_size 512M
php_value max_execution_time 300
php_value max_input_time 300
- Memory Limit: Ensure that your server has enough memory allocated. Large file uploads may require more memory. Check and increase the
memory_limit in your php.ini file.
- Also you can do it with plugin here is plugin url-
- https://ww.wp.xz.cn/plugins/wp-maximum-upload-file-size/
Since I’m not that comfortable changing files, I tried the plugin that you suggested. I increased the size limit to 1GB and tried again. This is the error message that I got. Any thoughts? Thanks for your help.
“Cloudy days – Eagles.mp4” has failed to upload.
There was an error opening the temp file /home/studpopc/public_html/wp-content/wmufs-temp/1-4ef11e9925fb8939d5747880f6c84f24d6b29c0d.part for writing. Available temp directory space may be exceeded or the temp file was cleaned up before the upload completed.
hello,
If you’re encountering an error like “There was an error opening the temp file” when trying to upload a video in WordPress, you can try the following steps:
- Check File Size: Ensure that the video file size is within the maximum upload limit allowed by your WordPress installation. You can check and adjust this limit in your WordPress settings or contact your hosting provider.
- File Permissions: Verify that the temporary folder used by WordPress for uploads has the correct permissions. The folder should be writable by the server. You can check and adjust folder permissions using an FTP client or through your hosting provider’s file manager.
- Clear Browser Cache: Sometimes, browser cache issues can cause problems during file uploads. Try clearing your browser cache and attempting the upload again.
- Update WordPress and Plugins: Make sure your WordPress installation and all plugins are up-to-date. Outdated software can sometimes lead to compatibility issues.
- PHP Version Compatibility: Ensure that your hosting server is running a compatible PHP version with your WordPress version. You can check the recommended PHP version for your WordPress version on the official WordPress website.
- Check Server Storage: Confirm that there is enough available storage space on your hosting server. If your server is running out of space, it may prevent file uploads.
- also you can allow mime type in your theme’s function file put following code in function file.
function custom_allow_mime_types($mimes) {
// Add your custom MIME types to the array
$mimes['svg'] = 'image/svg+xml';
$mimes['mp4'] = 'video/mp4';
// You can add more MIME types as needed
return $mimes;
}
add_filter('upload_mimes', 'custom_allow_mime_types');
Hope it’s help you. Thank you
-
This reply was modified 2 years, 4 months ago by
Pooja Patil.