you can plain javascript file upload for this with ionic framework.
const url="YOUR_WP_ACTION_RUL";
const form = document.querySelector('form');
form.addEventListener('submit', e => {
e.preventDefault();
const files = document.querySelector('[type=file]').files;
const formData = new FormData();
for (let i = 0; i < files.length; i++) {
let file = files[i];
formData.append('files[]', file);
}
fetch(url, {
method: 'POST',
body: formData
}).then(response => {
console.log(response);
});
});
Related Posts:
- Building a custom REST API
- Photo Gallery Plugin and Touch Devices
- To Disable WordPress Rest API or Not To Disable?
- Resizing all images
- Filter out results from REST API
- Deactivate plugins only for mobile devices
- How to authenticate custom API endpoint in WooCommerce [closed]
- Automatically Import Image into Posts from URLs on the Web?
- How can I attach images to a post from the media library?
- WordPress pods io – Rest API for fetching fields information for custom post type
- Rename existing old uploaded images containing accented French characters (not during upload)
- Thumbnail with different sizes
- Disabling post images for not logged in users
- How to upload thousands of images?
- There’s some way to add a wrapper around posted images?
- How to get CMB2 to show a single image at a specific size
- How to limit 1 image per post on homepage only?
- Flickr plugin that will display photos from multiple group pools? [closed]
- Getting media library popup in custom plugin admin page
- How to change ID of an attachment in wp_posts and its related tables correctly?
- Keep user’s privileges on accessing contents in JSON response
- bulk change of image setting “link to” to “link to: image url “
- Regenerate images with automatic ALT and TITLE attributes
- How to retrieve custom meta term of category taxonomy from WP Rest API?
- Remove caching from wp_remote_get calls from custom plugin
- Inserting HTML tag with ACF into shortcode
- Images not showing after changing wp-content folder name
- Create mobile navigation header with settings integration
- How to Delete all Unused photos Function
- How can I make use of WP Mobile Detect conditions from within a plugin?
- How to save generated JWT token to cookies on login?
- How to modify WCMP Rest API response?
- Access WordPress data from external PHP application.
- Contact Form 7 Get Image Function [closed]
- Load external images via proxy
- Limit post creation by role
- how to do login using woocommerce rest api From android
- Can we have an ‘Update metadata’ button in Image Gallery for all image instances?
- Add ALT attribute to Pin It Button image to pass HTML5 validation
- Adding (image) caching to my Tumblr widget
- Implementing an image hosting website using WordPress? [closed]
- Redirect to another page using contact form 7? [closed]
- In Woocommerce theme need to add custom external link [closed]
- How to limit image size for the entire website ? But without editing the post (css/plugin?!)
- Skewed / slanted button within elementor [closed]
- How can I automatically download all images from all imported posts, place them on my new host, and replace all the links
- Plugin for an interactive image? [closed]
- How to fix broken media library?
- Add “Featured Image” box in my plugin post page
- Blurry images when loading the page first time
- Image Galleries for website migrated from .com to .org
- Search by Attachment ID
- JSON API Plugin not showing Attachments id reused
- Some images on WordPress site are suddenly gone
- Regenerate Thumbnails Plugin successfully updated my thumbnails but image src won’t change to new image size?
- Multiple images per post – Show random image elsewhere
- Replace image urls(absolute instead of relative) by using filter in single page
- Simple sildeshow/image-upload plugin?
- Change Dashboard URL from wp-admin to wp-admin/index.php
- how to remove share button from image overlay
- How to hide featured images of all posts falling under the same category in wordpress?
- Upload Image with a file URL and show dynamically on Frontend
- How to send SMS notification to customer after click on submit?
- insert og image link in wordpress post
- How to Upload images to a custom folder in upload folder using media uploader
- Displaying all the images from all of my articles
- Product Page loads terribly slow when product gallery images are added
- One WooCommerce Store to multi distributor sites
- Remove metatag from a particular page
- Custom REST API POST Endpoint Not Working, 404 Error
- is it possible to fetch data from a remote api while admin is writing a new post?
- add tags to wordpress post using REST API
- WordPress how do I change images used in plugins?
- Modifying server’s response to API endpoint
- Can’t access 3rd party API, code works on local server but not on wordpress
- Why is my site still showing insecure icon even if I have SSL certificate?
- How can I add a permissions callback to the REST API index pages?
- Help finding a plugin – masonry type post grid
- How to wrap image tag into div for post only?
- Insert Sponsor logo in custom own theme
- custom REST endpoint not passing body of POST request to callback
- Optimize and delete images in WordPress
- WP Rest API v2.0 user profile update issue
- Is there any hook to change media html in post? [duplicate]
- Add image to post
- How to force regenerate thumbnails in WordPress posts?
- resizes images on the fly
- How to select featured images for 1500 posts?
- How to show post attachment image
- Display alt text as tool tip on page
- Adding Relevant Post Images
- Images not showing and plugins not installing on wordpress server move
- Adding hero images to blog posts
- Image Layout in Posts
- Is there a WordPress Plugin like Imsanity that keeps high resolution originals? [closed]
- Making WordPress-built website mobile friendly
- how to embed a crop feature for cropping images uploaded by the user
- Filter custom post type returned from REST api
- how to update WordPress plugins from external website with nodejs?
- How do i display the number of images on the “post screen”