As you can see in wp-includes/script-loader.php, the exact message ‘An error occurred in the upload. Please try again later.’ is the default error message.
After looking further in wp-includes/js/plupload/handlers.js you can realize that something specific happened. You could debug this by setting a breakpoint to look up exact error code. See https://stackoverflow.com/a/13372025/2234089 for more information about browser javascript debugging.
Look in to your server error log for PHP errors.
Ensure you don’t have conflicts with other themes or plugins, try disabling them all and see if upload still fails.
Related Posts:
- Media not actually deleted on disk when click “Permanent Delete”
- Make inline uploader (plupload) on options page upload to a specific folder
- Problem uploading files, after changing domain name
- Extend Media Library
- How to show all available images in WP’s media library when using the Polylang plugin?
- Users can’t upload images on frontend if they haven’t got access to the wp backend
- Which filters or actions to use after a media upload and delete?
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- How to restrict images in v3.5 Media Library modal to only those from a specific post id?
- WordPress monthly upload directory owner set to root
- Why are double-periods (“..”) invalid in a WordPress image filename?
- How can I speed up a slow loading media library?
- Password protect some uploaded files, so only logged-in users can view them
- What to do with unattached logos and header uploaded via native wordpress uploader?
- Append button to WordPress Image Details modal
- Change URLs for static content
- Moving Media Library
- Add item to media library from blob or dataUrl
- add_image_size creating lots of images (of various sizes)
- WP3.5 Media Uploader – how to make it accept multiple images?
- Add new media uploader at frontend for wp 3.5+
- Trying to add filename over image in Media Browser
- Maximum upload size changes in php.ini ignored – How to remove upload size limit?
- How to disable WordPress Media resize different size version?
- Media library storing files in uploads not folders within in uploads
- Is there a limit on the number of attachments?
- How to host different file formats/types for a media attachment without creating multiple attachments?
- Site icons with alpha channel for self-hosted WordPress blog network
- how to use media library [closed]
- Can I stop wordpress generating media sizes
- Cannot upload .mp3 file to wordpress media
- Replacing Images in Media Library
- Copying uploaded images not working in wordpress
- Restrict WordPress Media Library for a specific user role (users can only see/select own media)
- Error uploading image in WordPress
- Stop WordPress from generating redundant image size
- WordPress 4.9.8 Trying to add filename over image in Media Browser
- Convert (-) and (escape) signs to (_) when uploading files on wordpress media library automatically
- wordpress media upload given An error occurred in the upload. Please try again later
- Using wp_enqueue_media() with switch_to_blog() issue
- How to get the return value of wp.media({ frame: ‘post’ }) in all cases?
- Media library only shows for admin. Doesn’t show editor or below [closed]
- Get File Object from wp.Uploader
- Hide images from anonymous user?
- Saving file to disk receiving fopen error
- Multi Upload In Theme Options
- How to load attachment in media library for current user?
- How To Watermark Audio
- Resize existing library images
- User permissions to upload images
- Media Library Won’t Display Any Images
- A link (not in the post) to download a specific PDF file
- How to change format of file link ( Name ) when insert from media uploder
- More Fields & Media Upload
- Migrating media files (documents only) to a fresh install and maintaining the same directory structure
- How does wordpress handle media files?
- Set different max upload size limits based on file type/extension
- Correctly using the root directory for media uploads?
- How to allow .bin files upload?
- What is the URL pattern for image thumbnails + sizes?
- Changing titles in Uploader for “Posts”
- Add SWF file to wordpress through custom template
- How to detect when a file has been uploaded?
- How to upload prc file type?
- Uploaded images result in a file url with full path on disk appended
- How to locate the js code and php code for certain function?
- Multiple images are generated in WP-content in wordpress
- Removing extra large generated images disables all crops
- How Do I Change the File Permission For Uploaded Files in WordPress?
- MIME types not recognized by media library
- Restrict Users to Only Edit Media Owned by Users in Their Role
- Images not displaying on site or media library
- image not display in media library and thumbnail not display in post
- Images uploaded via Gutenberg image block are cropped
- Bulk upload images in upload folder does not show in media library
- Media not displaying other users uploads – WordPress 4.9.2
- Unable to upload anything to WordPress site
- Using Gravity Forms to upload media into library, then attach to post
- I migrated WPMU site: Unable to create directory uploads/… Desperate for help!
- Redimension thumbnail crop without creating new images
- Issues with WordPress 3.9.6 media libraries on XAMPP
- Upload Multiple Files With Multiple Fields And With media_handle_upload
- Private file system for attachments
- Used Duplicator to transfer a site. Now my media uploads aren’t working
- controlling whether upload is attached to post or not
- How to split my uploaded media into directories?
- Metabox with file upload to custom directory
- Attachment Metadata not updated while uploading audio files
- Is there a way to force Featured image to show as attachement?
- Link or button to open the media manager from frontend
- Basic File/Post restriction plugin
- Bring up the media uploader on click
- How can comments be turned off for media attachments on WordPress?
- Question regarding the file path for media_sideload_image and wp_upload_dir()
- How can I add custom sizes for PDF thumbnails generation?
- Media manager asks for file title when upload
- Simplifying ‘Add Media’ Modal in front-end Content Editor
- Cannot Upload Video (MP4) File
- Permission to edit media files (photo captions, alt tags)
- Adding multiple MIME types of the same extension to WordPress?