rawurldecode fixes the issue.
$src = media_sideload_image(rawurldecode($url), $post_id, $desc, $return);
Related Posts:
- How can I add an image upload field directly to a custom write panel?
- Hook to get image filename when it is uploaded
- Files automatically added
- Plugin writing: access file that was just uploaded
- How to export post meta with images in wordpress
- Upload multiple images and insert them into custom html code
- How to move an image in a plugin to the upload directory and make it as a media of wordpress?
- WordPress discards PNG file when uploading plugin file
- Hook for validating and rejecting frontend image upload
- Displaying $_FILES data (simlar to $_POST)
- Is it possible to convert various image types from remote URLs to WebP and then serve them immediately?
- Leveraging Core Functionality in Icon Upload Plugin [closed]
- Upload to a specific media folder created by FileBird Lite
- Where to store PHP files created by plugin / themes
- Checking if a file is already in the Media Library
- Standard location for plugin to save/cache files?
- Saving data-URI to media library
- How to implement add_image_size in a plugin
- Change Media Uploader default directory
- How to catch images with blank dimensions?
- Changing upload directory for plugin uploads only
- Upload file to remote storage
- How to find attachment ID for first image in a post
- Having Problem On Getting WP Post Gallery Images URL
- Why are two functions over-riding each other?
- Set first image (external) as featured image / thumbnail
- $wp_filesystem returns NULL. What are the dependencies?
- Hook event for upload image in the menu
- WordPress Media mime type filter problem 4.0
- Sample — test — data for large WordPress install
- How to get an image transferred via FTP or script to appear in Media Manager?
- Using the component outside the editor. select(‘core’) is null
- Is there a better way to implement responsive images than what WordPress uses by default?
- Proper way to hook wp_get_attachment_url
- Save image as featured image
- How to rename image at uploading on specific plugin or post-type in WordPress
- Sharing a common set of image files for media library, across all sites within multisite
- Uploading images from a custom page using blueimp uploader?
- How to show large image in checkout page using WP Ecommerce plugin [closed]
- How to send email in wordpress with more than one attachments
- Adding Attachment Display Settings in custom media frame
- Resizing Images for a Gallery-Plugin?
- Using the default wordpress uploader inside plugin
- Changing upload dir in a plugin regardless of post type
- How to replicate Media Library “Add New” on Plugin Settings Page
- How to implement filesystem cache in WordPress
- How to serve different thumbnails/images depending on users browser/platform
- How to enable sorting in custom media uploader in plugin
- Create a new post using rest api and save featured image using an external image url
- Why is the temporary upload always 4.1K
- Can’t upload image using media_sideload_image
- Get attachments from a post
- Putting a resized image into media library with wp_get_image_editor(
- Display list of uploaded images, filtered by user under a specific user group
- Redirect to another page using contact form 7? [closed]
- wp_editor add media button not working
- WordPress Specified file failed upload test
- Which is the better way to store images for the plugin?
- How do I change the image from the default mysteryman in the WP Profile page
- WordPress Creates Unused (Unregistered) Image Sizes
- Hook after attachment added and cropped
- Conditional Generation of Image Sizes using add_image_size
- how to change image of jquery slider plugin
- How to create a digital product download link that can’t be used twice?
- WP Still Generating 150×150 Thumbnail Size Even After Un-Setting Small Size in Functions.php
- Look for a file in a theme before loading from plugin
- Import user data using CSV
- How to submit/upload data to database and in specific folder?
- Get audio metadata on file upload
- Screenshots on plugin page taken old [closed]
- Resize not resizing images with Capitial extension like JPG
- Why doesn’t update_post_meta work for certain strings?
- wp.media Uncaught TypeError: Cannot read properties of undefined (reading ‘state’)
- Import images remotly run through timeout error
- The URL of images on my website changed after being set as featured image
- Getting incorrect filepath inside custom block front-end output using @wordpress/create-block tutorial
- Insert and read media from the WordPress library and call in the plugin
- WordPress Favicon not Working For Images/Videos/PDFs
- Trying to rename a file upload as the hash of file content on wordpress
- Adding the image selector/uploader to an admin back page
- Save media files (images) to database instead of the filesystem
- Home page is not loading, where in other pages are displaying on the site
- what functions to use to resize images and create DB metadata for them after/during upload?
- WordPress custom url without using any of the custom tags given
- WordPress Iframe for blog image
- Replace the WordPress Media Library Uploader
- How to handle a lot of media files in the uploads folder? (+10.000)
- How to destroy or dispose wordpress uploder/manager?
- Filter the_content() to add custom figure tags
- Update all images url imported from HTML pages
- Changing upload directory for plugin uploads only
- How do you filter get_media_items by mime type in a custom media upload tab?
- Images not displaying on live server
- upload script in plugin development [duplicate]
- Using “add_image_size” to register custom image sizes inside plugins not working
- Add a custom image source
- Programmatically creating posts based on external JSON feed (asynchronously)
- Do Not Back Up? Is there any accepted way to tell backup and clone plugins to skip a certain file? [closed]
- upload image to wordpress media library failed for custom post type
- Set srcset on a block image