=== Upload multiple media by Api ===
Contributors: sandeepjainlive
Tags: rest api for media,upload multiple media
Requires at least: 5.0
Tested up to: 7.1
Requires PHP: 5.6
Stable tag: 1.5.1
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Enables multiple image uploads via WordPress REST API for use with React, Angular, iOS, Android, and other frontend apps.

== Description ==
By default, WordPress only provides an API to upload a single image via the REST API. However, when using a frontend framework like React, Angular, iOS, or Android apps, there may be a need to upload multiple images. This plugin allows you to upload multiple media files to WordPress.

The existing REST API endpoint is preserved:

/wp-json/mmbyapi/v1/upload-multiple-images

The existing form-data field is preserved:

mmbyapi_file_upload[]

== Installation ==
After downloading the ZIP file of the plugin:

1. Log in to the WordPress administrator panel.
2. Go to Plugins > Add New > Upload Plugin.
3. Select the downloaded ZIP file.
4. Click “Install Now”.
5. Activate “Upload multiple media by Api”.

== Frequently Asked Questions ==
= What should be the file name for uploading multiple media files? =
mmbyapi_file_upload[]

= What will be the REST API path? =
/wp-json/mmbyapi/v1/upload-multiple-images

= Can I attach uploaded media to a post? =
Yes. Send an optional `post_id` form-data field with the REST request.

== Changelog ==
= 1.5.1 =
* Fixed multiple-file handling for multipart/form-data requests.
* Fixed undefined post ID handling.
* Added optional post_id support.
* Improved upload error handling.
* Preserved the existing REST endpoint and field name.
* Updated WordPress compatibility metadata.

== Screenshots ==
1. Upload multiple media
