Okay so Milo was on track to what the answer was. and I needed to brush up on muliple file uploads… anyway the solution for me to at least get it to upload… was this
$daFile = $_FILES['files'];
foreach ($_FILES['files'] as $key => $value) {
$daFile[$key] = $value[0];
}
$upload = wp_handle_upload($daFile , array('test_form' => FALSE));
this worked for me and retuned the uploaded file.
Related Posts:
- Load minimum WordPress environment
- Displaying PHP Errors from admin-ajax.php
- admin-ajax.php returns 0. How do I debug it and fix it?
- AJAX action not triggering PHP function
- How to allow to user non logged in WP system upload in media library?
- Using wp_handle_upload and media_handle_sideload with ajax
- How to know what page is calling admin-ajax.php?
- How to solve “Updating failed” with 403 Error when trying to save a Site or Post in Gutenberg?
- How to set post_id to 0 when you upload image via Add media button. (async-upload.php)
- Ajax image upload with media_handle_upload and form.js
- (updated) How to add AJAX error handling to a (fully) custom registration form?
- Gravity form Load By Ajax Cannot Submit – Error 400
- eventON plugin AJAX call triggers website crash
- Pass additional parameter with async upload
- contact form ajax empty response error message
- How to disable drag-and-drop upload function in Media Library?
- Distinguish between 2 instances of admin-ajax.php
- change wordpress pagination url after doing the request
- Why is the file not uploading to the server?
- WordPress POST AJAX call, var_dump($_POST) NULL and AJAX response empty when inside ob_start
- WordPress 403 error on form submission with Ajax
- Frontend AJAX Media Upload returning 404
- admin-ajax.php 403 errors – no caching, permissions are fine
- How to require files in a custom endpoint
- Syntax error on query_vars while handling with Jquery
- Cannot add multiple single images at once
- How to send custom variable in Media Uploader ajax request?
- wp_enqueue_media problem
- While doing ajax, WordPress returning internal server error 500 and stating that my theme functions are undefined
- How to cache json with wp-super cache
- Get Previous & Next posts by Post ID
- ajax – why multiple calls to wp_create_nonce() return same value?
- AJAX request on the frontend always returns 0 if user is not admin
- Admin Notification after save_post, when ajax saving in gutenberg
- Cannot load admin-ajax.php. No access-control allow origin*
- Initialize JS with an ajax loaded ACF form
- WordPress Nonce Issue for Ajax Login and Logout
- Nonces and Ajax request to REST API and verification
- Accessing a random image via ajax
- Vue.js + AJAX Shortcode
- wp_ajax action is not running
- WordPress AJAX calls not detecting language properly?
- AJAX issue – Uncaught SyntaxError when processing Zip File
- wp_verify_nonce doesn’t return true on server when it matches the nonce
- How do I set the url to make an ajax request for a html document?
- wp-admin AJAX with Fetch API is done without user
- Populating content dynamically via AJAX and Advanced Custom Fields [closed]
- Load ajax if is_home()
- Populate a Map at The Same Time as showing Posts via AJAX
- wp_localize_script not working on ajax response
- Why Does WordPress not output admin-ajax.php path by default?
- Front-end Ajax File Upload
- Code run fast on a cronjob but slow with a do_action or ajax call
- update_post_meta using ajax
- Ajax comment form submit on frontpage alerts success but no insertion
- Wp mail does not work when Ajaxed to
- Ajax calls from the theme directory
- How to pass parameters from jQuery ajax into PHP function?
- ajax is returning 0
- How to add ajax url to js using wp_add_inline_script()?
- WP AJAX post filter > do something with empty value
- How to make a fetch() POST request to wordpress rest api?
- How to jQuery Ajax show new data from successful insert?
- Get uploaded image and attach it to the new post
- Redirect after saving form; and yet use wp_die()
- Convert canvas to image and upload image to server
- ajaxt returning object object [closed]
- Load more posts (Ajax) in tabbed sidebar on single.php
- Something strange with ajax
- Get localize of a loaded javascript
- is there’s a way to get the next page content generated by page break block with ajax call?
- REST public POST giving 403 forbidden nginx
- Query data after an Ajax insert
- How to get next and previous post into ajax formed modal windows?
- Passing value from select form with Ajax not working
- Sending email through Ajax without page refresh hangs on admin_ajax.php
- GET request return value as error instead of success
- Content including hooks inside wp-settings.php are being called twice in WordPress
- Problem when sending file via ajax
- wp_verify_nonce not working on the mobile device
- 404 error custom post type rest api
- An error has occurred during the upload process in wordpress 5.3.2
- Change button text after ajax db update
- How to implement AJAX within a class storing shortcode atts as class variables
- How do I display posts of a specific day?
- (Frontend AJAX) get post data WITH image thumbnail?
- Native WordPress Video Shortcode Not Working After Post is Loaded via Ajax
- Ajax Function call is always returning 0 in front end(without plugin) [closed]
- Ajax live search, “No products found” when the title contains apostrophes and quotations
- Add Ajax loaded posts to existing posts
- Speeding up admin-ajax.php
- admin ajax is not working for non logged in users
- Change search to outpout category name instead of Post type name
- ‘Dehighlighting’ navigation once clicked
- wp_localize_script not create variable in head section
- AJAX admin Internal 500 error Failed to Upload
- Class property not visible inside ajax callback function?
- How to add a “Load more” button for the comment section in WordPress?
- How does the security of admin_ajax.php work?
- No full page reload when navigating from page A to page B: is this possible with WordPress?