you are doing some wrong things, 1st $_POST['data'];
not contain any post data use json array’s keys to get post data like.
$data_key1 = $_POST['key1'];
$data_key2 = $_POST['key2'];
// and so on ...
replace key1 key2 etc with json data keys which your ajax request sent.
Related Posts:
- How to add new tab to media upload manager with custom set of images?
- Extend Media Library
- How to make “Upload files”selected by default in Insert Media?
- WordPress 3.5: Setting custom “full URL path to files” in the Media Library?
- what happens to existing media files when I switch to year/month directory structure format?
- Reject upload of wrong-sized images using the Media Uploader
- How to show all available images in WP’s media library when using the Polylang plugin?
- Upload post thumbnail from the front end
- How to add a custom field to the media screen (image/gallery)?
- Saving data-URI to media library
- Can’t upload media, permissions are correct
- Saving Media – Which Hook is Fired?
- Set limit to media upload?
- WordPress 3.5: Switch back to Old Media Uploader?
- upload_async.php returns 500 error
- Which filters or actions to use after a media upload and delete?
- Display attachments by ID in a wp.media frame
- Use a separate custom table (not posts) to handle file upload data
- Image upload callback in new 3.5 media
- Add inline uploader to plugin option page
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- How to wp_upload_bits() to a sub-folder?
- Insert images to post not working
- “Add Media” only shows “Full Size” under Attachment Display Settings
- Differentiate Featured Image from Post Images upon Upload
- Where do the favicons for Media Files come from
- How to manage a standalone media folder?
- wp_generate_attachment_metadata returns empty array
- How do I link directly to uploaded files?
- Is it possible to trigger some JavaScript when Media Popup is opened?
- How to call WP3.5 Media Library manager?
- Is wp_read_audio_metadata() function deprecated?
- Settings in ‘Media > Settings’ is ignored when inserting images
- Set a maximum upload count for users on a specific user role
- Refresh wp.media after ajax call
- I want to replace a media file (pdf) with an updated version
- There’s a way to scale media (images) at 50%?
- Multisite, upload images directly to Amazon S3
- How to get all files inserted (but not attached) to a post
- Password protect some uploaded files, so only logged-in users can view them
- wp_editor with media buttons
- How to protect uploads in multisite if user is not logged in?
- Media Uploader: get deleted files
- WordPress REST Upload Media
- using media uploader to select image of specific size, enforce cropper
- Trigger JS when featured image upload window is opened in admin
- Force wordpress to see uploads folder media
- Append button to WordPress Image Details modal
- Add item to media library from blob or dataUrl
- Modify the array of selected images in media modal
- How to validate the file name of the Media File Uploads?
- Disable TinyMCE Drag and Drop
- WP3.5 Media Uploader – how to make it accept multiple images?
- 3.5 media manager add CSS / JS to new ‘tab’ iframe content
- Add/change multipart_params parameter when uploading post image
- Media uploader not work properly [closed]
- Post Specific Uploader
- Setting wp_temp_dir and permissions not working for “Missing A Temporary Folder” error
- http error when uploading media files
- Select image sizes you want to be uploaded
- wp_temp_dir does not change the /tmp temporary default directory
- Maximum upload size changes in php.ini ignored – How to remove upload size limit?
- How to disable WordPress Media resize different size version?
- insert post & Upload post thumbnail from the front end using ajax
- How to change “Publish” button text for specific page
- Saving WordPress generated thumbnails in a subdirectory
- Media upload via backend doen’t work after moving site
- Whole bunch of errors on WP website – media upload, edit slugs, edit screen not working [closed]
- Setting higher upload limit
- Media library storing files in uploads not folders within in uploads
- WordPress media upload multiple images
- How to upload an image using media uploader and return the image link to javascript?
- Set featured link not showing
- wordpress 3.6 media manager cropping timestamp
- Media Gallery doesn’t show (using WP-Read Only)
- Is there a way to force Featured image to show as attachement?
- Single file upload
- Upload User Avatar from android to WordPress using Rest API
- Can’t upload files 1MB+ [closed]
- I am facing problem in loading and downloading Mp3 files
- How to disable direct media file access in nginx or ubuntu for non loggedin users?
- Updating Media Library PDF’s in bulk
- Does WordPress import export tool keeps the file hosted on the old website?
- How to properly move media files and update data?
- Is it possible to restrict the number of media uploads (photos) per user?
- Image in binary in the data to WordPress media library
- Cannot add image (png, jpeg, etc.) but can add pdf, 403 forbidden when posting
- Get Specific Files (Only Specific Extension Type All Files in Loop ) from Media
- How to Upload a media item with alt text and description
- Can not access .txt file which I uploaded through media
- Different upload file size limits based on file type
- images inside uploads folder will return 404
- Permission to edit media files (photo captions, alt tags)
- How allow only the uploading user access to media
- How to solve too many files in uploads folder(s)?
- wp.media multiple selection limit
- Front end form with images and media_handle_upload logic?
- wp-content/uploads/year/month returns 404
- How to revert the media structure from /uploads/year/month to the /uploads directory in wordpress?
- Uploading media from non-local host computer