I know it’s been a while, but I wanted to offer a solution, if only for those who come across this question via Google.
The issue is with the order of the parameters in the query string when you build the URL for the media uploader. My experience is that any parameters that come after ‘TB_iframe=1’ are ignored, so you want to put your custom values before this. I haven’t seen this documented (and haven’t explored core to see why the parameters are handled this way), but can’t think of any good reason for it–I probably spent an hour tearing my hair out before I discovered the issue.
I also haven’t tried this in 3.5 yet. With all the changes to the media uploader it’s possible that this has been addressed.
Related Posts:
- Using attachment_fields_to_edit filter inside plugin class
- Post Specific Uploader
- Limit upload file type on one custom post type
- How to generate thumbnails when needed only?
- Media files exist in upload folder but not showing up
- Set limit to media upload?
- Save camera info as metadata on image upload?
- How to upload SVG in WordPress 4.9.8?
- Use a separate custom table (not posts) to handle file upload data
- PNG with transparent background turns black when uploaded and resized
- WP 3.3 > Still no option to enable automatic image overwrites?
- Custom upload directory per CPT; when removed, file not deleted
- Modify featured image path to Amazon S3
- How to get all files inserted (but not attached) to a post
- Trigger JS when featured image upload window is opened in admin
- uploading files to the uploads folder via ftp
- Modify the array of selected images in media modal
- How can I upload SVG images using the media uploader?
- Delete images uploaded by ‘Subscriber’ role
- Remove upload_files capability from a role but allow role to manage an avatar image
- 3.5 media manager add CSS / JS to new ‘tab’ iframe content
- post_id missing from the wp-admin file upload request
- Insert Featured image from Feed
- http error when uploading media files
- How can I upload a csv file into WordPress?
- How to link to the image editor’s Edit Image function?
- HTTP Error when uploading mp4 video file
- Change the size of the image preview on the media edit page
- How to check if “media_send_to_editor” is audio?
- “upload_mimes” filter not working. Need to allow WOFF and WOFF2
- Saving WordPress generated thumbnails in a subdirectory
- Whole bunch of errors on WP website – media upload, edit slugs, edit screen not working [closed]
- Add select field to media uploader that adds a class to the image
- Retroactively place uploaded media into -month, -year based folders?
- Can’t seem to upload a file to a custom directory
- wp.media add context
- How can I receive the image id using the media box?
- wp_enqueue_media() Will not load JS on the theme
- media sideload image not working with JPG file
- programmatically create posts from files in a folder
- add_image_size() and uploading the exact size leaves 1×1 image in uploads
- How to find the origin of a file upload from within wp_handle_upload?
- How do I insert an already uploaded video file into my Media Library?
- Split up files from one big folder to multiple folders in uploads after migration
- Display attachments by the ID of the post being edited in the wp.media frame (frontend)
- Media Gallery Upload photo incorrect way like glitch
- WordPress uploads autocreate folder every month
- Enabling users to upload files
- Is there a way to make my media files unsearchable?
- Error uploading images (but the images are at the server!)
- Is it possible to use media_sideload_image to upload local files?
- How to switch to year/month directory structure format from a single folder
- Rename attachment filenames to attachment ID on upload
- WordPress Media Library showing wrong preview size?
- Restrict authors to seeing ONLY their media files
- How to edit attachment with media-upload.php?
- How to fix the orientation of images when uploading via the WordPress Media Uploader? [closed]
- Uploading PDF files from the front-end
- Uploads going to the root of wp-content/uploads
- WordPress Images, Header Videos and Carousel is not working live but perfect on Local Host Is It FTP? Filezilla?
- Uploaded image with non-english characters is named incorrectly in upload folder
- Can’t upload images (incorrect “file exceeds upload_max_filesize” error)
- Anybody knows if i could upload a leaflet or openlayers3 map to wordpress webpage?
- “Trying to upload files larger than” error will not go away
- Remove Media File Items From Server That Do Not Exist in Media Library
- How to add filetype to meta value when using wp_upload_bits?
- Cropping thumbnails to specific dimensions on front end post
- Double slash in upload URLs
- Unable to upload new file as a product
- Efficient way to move media folder to another folder
- Limit users to specific uploads
- Make inline uploader (plupload) on options page upload to a specific folder
- WordPress blog with a custom made theme hosted on heroku
- How to add HTML into error message
- media file uploading
- What is wrong with my wp_insert_attachment code?
- Editor User Role can’t see other users media
- How to allow .ged file uploads
- problem when uploading file by metaboxes
- Set attachment category from file name on upload
- HTTP Error WordPress on IIS uploading image
- What folder to place Large Video files?
- WordPress Upload Speed
- _d_improd_ directory in uploads breaking site images
- Organizing the Media Library for Cleanup
- Allow author to upload image via Media button without plugin
- Drag and Drop Media Not Working in Windows 10 Edge Browser
- Exclude some photos in media library
- Failed to load resource at admin screen
- Make custom thumbnail size image in media_sideload_image function
- Upload more than one media files with a post
- Upload file to front-end form and send as email attachment
- uploading photos
- How to handle image resize in media_handle_sideload?
- Image uploaded in media library, can only see it when I using the WP Edit Image feature. 404 when trying to view in browser
- Single file upload
- Host Images from Link
- Upload media error: unable to create directory (windows hosting)
- Add frontend editor with media buttons for Visitors and display only their media
- Can’t upload files 1MB+ [closed]