I figured out how to fix my problem.
In my nginx config file (/etc/nginx/nginx.conf
) I added client_max_body_size 100m;
at the end of the #Basic Settings
in the http {}
section.
I hope this answer will help some of you and please tell me if there is any better solution to this problem.
Related Posts:
- What is the alternative to “ when it comes to calling Media (image) files in the ‘attachment.php’ file?
- Edit Image/Image Details – Replace button missing
- Uploading media with the REST API
- Remove “Insert from URL” link in Media upload – WP 3.5
- Decrease file size upload in Media
- Adding a custom image upload size and making it selected by default?
- Hide old attachments from wp media library
- How to register images uploaded via FTP in media library?
- Failed media upload: “The uploaded file was only partially uploaded.”
- How to upload imagick resource to media in wordpress
- Upload images and attachments from frontend form
- Image upload via FTP to wordpress media library
- Adding a querystring to an image URL when clicking ‘insert into post’?
- How to get media objects
- NGINX rewrite rules for multisite
- How do I get around “Sorry, this file type is not permitted for security reasons”?
- WordPress automatically adds links to uploaded images
- zip unzip attachments in wordpress
- Get featured image with custom size outside WordPress
- Custom upload folder
- Convert all uploaded PNG files to PNG-8 format
- How to decrease the max file upload size without using php.ini or htaccess?
- Change image data durgin upload
- Hook on file upload
- Sudden Upload HTTP errors, PHP uploads and memory limits are already to high to my taste. Anything else?
- wp_delete_attachment not working with multiple values
- Renaming “Expand Details” within “Add Media”
- show/hide attachments
- Can’t upload files
- How to automatically convert images to WebP on WordPress?
- WordPress directories not writable after PHP version upgrade
- Changing upload directory temporarily
- How to save WordPress post and attachment images from front end using media library?
- Using wp_enqueue_media() with switch_to_blog() issue
- How to upload WordPress Images to remote web server and display those images in WordPress gallery [closed]
- Upload file could not be moved to wp-content/uploads
- Enable custom logo upload if logo is not in header
- How to get the return value of wp.media({ frame: ‘post’ }) in all cases?
- Front-End Upload media with category
- How to manually set an attachment in a post?
- Media Library: Remove replace images of selected author
- Handle image file and save it to media
- Adding attachment custom field metadata to TinyMCE tag
- Right path for renaming a file in uploads folder
- How to upload multiple images using WP rest API to media?
- Attaching an upload to a user
- Media not displaying other users uploads – WordPress 4.9.2
- I want url from a file in media using title file
- WordPress file upload
- Upload images from one server to an other in wordpress
- Crop an image after upload on custom account page
- media_handle_upload fails with gravity form submitted image
- Restrict File Type Uploads by User on Wordress via functions.php
- Organising and display thousands of photos in media library
- How to solve 404 permalink errors on nginx server
- Can’t get data from audio media
- Get posts associated with media attachment
- Organizing the Media Library for Cleanup
- Issues with WordPress 3.9.6 media libraries on XAMPP
- Save the outputted image into the Media Library, with a different filename and extension
- 403 (Forbidden) delete file image in themer folder
- Insert media while posting is not working with new wordpress update
- File path for attachments outside of wp-content/uploads
- Is custom behaviour possible when asynchronously uploading?
- How to resize an image server-side before upload?
- controlling whether upload is attached to post or not
- How to split my uploaded media into directories?
- WordPress will suddenly stop saving files uploaded by my code (ran in nopriv ajax)
- Missing Images in Uploads Directory (Server Only)
- Name Input from widget displays Sidebar name instead of saved data
- How can I add a Description column to the media library browser screen?
- wordpress 3.6 media manager cropping timestamp
- Broken Media Library
- File Upload with Server in safe_mode
- Correct Syntax for uploading files to custom directory in WordPress
- Media Library is not loading on grid view in admin panel
- Blurry Images WordPress 5.8.1
- An automatic way to crop images of different sizes
- Generate and upload screenshot as featured image for user-submitted post
- Save Custom Meta Value on Media Upload
- Pull latest Youtube Video from json url and make new post
- What is the proper use of guid for images in wp_posts?
- upload image to wordpress media library failed for custom post type
- How can I improve and optimise my wordpress web server for better performance in 2023
- Upload multiple files via ajax from an HTML file input
- Image in binary in the data to WordPress media library
- get_post_meta returns on side but it doesn’t return on bottom of admin page
- stop resize button for wordpress media
- “Unexpected response from server” error when trying to upload any .mp4 file over 100MB
- Get a list of folders inside uploads directory
- WordPress site calling debug.log and .user.ini at certain hour
- How to Upload a media item with alt text and description
- NGINX rewrite rules for WordPress Subdirectory Multisite to support deep URL
- Updates applied to staging WordPress site affecting production even with different databases
- Different upload file size limits based on file type
- How can we upload custom page files?
- Restricting Image Upload Sizes using ‘wp_handle_upload_prefilter’ – Stuck media progress bar when Featured Image?
- Updating a remote media library plugin, wich breaks on php 8.1 update [closed]
- Convert base64 string to WordPress attachment uploads multiple images instead of a single one
- Unable to upload media to WordPress