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
- Images stored from external API not loading
- 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
- Can I use the wp media uploader for my own 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
- Add media and attach images to pages
- 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?
- Uploaded attachment not set as featured image
- 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
- How to list all images used on a specific page?
- 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?
- WordPress5.2.3: Better File Download Plugin validation issue
- WordPress custom url without using any of the custom tags given
- WordPress Iframe for blog image
- Uploading images to custom table
- Replace the WordPress Media Library Uploader
- How to handle a lot of media files in the uploads folder? (+10.000)
- Changed media upload path for plugin, but generates error & shows wrong url
- How to destroy or dispose wordpress uploder/manager?
- Caption Shortcode: what filter to change the image size?
- Filter the_content() to add custom figure tags
- Update all images url imported from HTML pages
- Issue on Getting WP Gallery Items In cpt-single.php As Attachments
- 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]
- How to automatically convert images to WebP on WordPress?
- Using “add_image_size” to register custom image sizes inside plugins not working
- Displaying an Uploaded Image as a Custom Avatar in WordPress
- 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]
- Load images from CDN and custom features to “Add Media” dialogue
- upload image to wordpress media library failed for custom post type
- Set srcset on a block image
- wp media uploader and ID3 tags
- WordPress Playground and uploading permission issue
- Do uploaded files to /tmp/ get deleted in WordPress automatically?
- WordPress portfolio posts: media not displaying if several images
- Can’t save Image from external API into Database
- How to modify the uploads directory for wp.media.frame assigning an subfolder name
- WordPress Media Uploader not displaying image that has just been uploaded
- Multimedia upload error in my wordpress job board plugin
- Show Image in Plugin Development