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
- Extend Media Library
- How to show all available images in WP’s media library when using the Polylang plugin?
- Hide custom image sizes from media library
- Password protect some uploaded files, so only logged-in users can view them
- Create Image Uploader for Widget
- Append button to WordPress Image Details modal
- Admin Media grid view images won’t load
- How to Removing fields from the Media Uploader/Gallery on a Custom Post Type Edit Page
- Specified file failed upload test. wp_upload_handle
- Restrict WordPress File Type Uploads by User Type
- Modify Maximum upload file size text
- Add select field to media uploader that adds a class to the image
- Upload a json file in php [closed]
- PHP Code stuck in Cache [Memcached] [closed]
- How to retrieve alt attribute for an attachment (uploaded image)?
- Duplicate Custom Header Functionality into the post edit screen
- Randomise upload filenames (or another solution to hide the original image URL from theft?)
- Uppload image from another source wp.media
- wordpress media library new uploads don’t write to database
- How to upload a file to a folder named after the user_id via plugin
- add custom link to wordpress media gallery modal
- move_uploaded_file() not working on wordpress front end
- Image rotation and editing stopped working in WordPress after upgrading Ubuntu from 16.04 to 18.04
- Incorrect MIME type for assets with Valet
- Upload multiple images to a Woocomerce product
- How to upload WordPress Images to remote web server and display those images in WordPress gallery [closed]
- How to get the return value of wp.media({ frame: ‘post’ }) in all cases?
- Images uploaded to the media library has strange colors. However, in the edit screen the color is ok
- Change WordPress Upload Folder using wp handle upload
- WordPress get_media_embedded
- Migrating media files (documents only) to a fresh install and maintaining the same directory structure
- How to remap one of the TinyMCE Advanced Editor button to open the wordpress media library?
- WordPress media upload issue could not insert attachment into the database
- Thumbnail images missing in WP media library
- WordPress upload file size error even after raising php limits
- Get uploaded image and attach it to the new post
- Why is my max_upload_filesize being limited to 2M? [duplicate]
- Images Uploaded saving onto older/previous year folders
- Convert canvas to image and upload image to server
- How to get the filename from file system and create a download link?
- Remove Media File Items From Server That Do Not Exist in Media Library
- How to Make Thumbnail of Post Stay Animated
- Migrating site, only header shows
- What if I have a large file on the server that I want the wp library to have?
- Problem with inserting multiple images in gallery of each WooCommerce product programmatically
- Efficient way to move media folder to another folder
- Can’t upload format files on media library
- unsharp thumbnails after uploading image
- overwrite wordpress gallery with custom gallery shortcode
- WordPress/NGINX not respecting the category URL for new posts
- Media Library: Remove replace images of selected author
- How to upload multiple images using WP rest API to media?
- I want url from a file in media using title file
- media_handle_upload fails with gravity form submitted image
- Get posts associated with media attachment
- Organizing the Media Library for Cleanup
- WordPress will suddenly stop saving files uploaded by my code (ran in nopriv ajax)
- 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
- What is the proper use of guid for images in wp_posts?
- 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