Title: Upload Multiple Media by API
Author: sandeepjainlive
Published: <strong>2021-10-13</strong>
Last modified: 2026-08-24

---

Szukaj wtyczek

![](https://ps.w.org/upload-multiple-media-by-api/assets/banner-772x250.png?rev=
2613422)

![](https://ps.w.org/upload-multiple-media-by-api/assets/icon-128x128.png?rev=2613438)

# Upload Multiple Media by API

 Autor: [sandeepjainlive](https://profiles.wordpress.org/sandeepjainlive/)

[Pobierz](https://downloads.wordpress.org/plugin/upload-multiple-media-by-api.1.6.0.zip)

 * [Szczegóły](https://pl.wordpress.org/plugins/upload-multiple-media-by-api/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/upload-multiple-media-by-api/#reviews)
 * [Rozwój](https://pl.wordpress.org/plugins/upload-multiple-media-by-api/#developers)

 [Wsparcie](https://wordpress.org/support/plugin/upload-multiple-media-by-api/)

## Opis

Upload multiple media files through the WordPress REST API with optional authentication,
duplicate detection, detailed responses and upload limits.

### REST API

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

File field:
 mmbyapi_file_upload[]

Optional field:
 post_id

### Features

 * Optional authentication using WordPress authentication/Application Passwords.
 * Backward-compatible public mode when authentication is disabled.
 * Detailed per-file JSON responses.
 * Duplicate detection using a content hash.
 * Maximum files per request setting.
 * Maximum individual file size setting.
 * Allowed MIME type settings.
 * Optional post attachment.

### Authentication

Authentication is OFF by default for backward compatibility.

When enabled, the caller must be authenticated and have the WordPress upload_files
capability.

Application Password example:

curl -i -u „USERNAME:APPLICATION_PASSWORD” \
 -F „mmbyapi_file_upload[]=@/path/to/
image1.jpg” \ -F „mmbyapi_file_upload[]=@/path/to/image2.jpg” \ „https://example.
com/wp-json/mmbyapi/v1/upload-multiple-images”

### Response

Successful uploads return attachment information including attachment ID, URL, MIME
type, file size, image dimensions when available, and a content hash.

Duplicate uploads return the existing attachment with `duplicate: true`.

If some files fail and others succeed, the endpoint returns HTTP 207 with per-file
results.

### Duplicate detection

Duplicate detection is enabled by default. The plugin calculates a SHA-256 hash 
of each uploaded file and stores it as attachment metadata. Uploading identical 
file content returns the existing Media Library attachment instead of creating a
second attachment. Renaming a file does not bypass duplicate detection.

### Compatibility fixes

The 1.6.0 settings allow-list correctly validates MIME types against WordPress MIME
values. PNG, JPEG/JPG, GIF and WebP remain enabled by default. Duplicate detection
also works when the same file is included more than once in a single API request.

## Zrzuty ekranu

[[

## Recenzje

Wtyczka nie ma jeszcze żadnej recenzji.

## Kontrybutorzy i deweloperzy

„Upload Multiple Media by API” jest oprogramowaniem open source. Poniższe osoby 
miały wkład w rozwój wtyczki.

Zaangażowani

 *   [ sandeepjainlive ](https://profiles.wordpress.org/sandeepjainlive/)

[Przetłumacz wtyczkę “Upload Multiple Media by API” na swój język.](https://translate.wordpress.org/projects/wp-plugins/upload-multiple-media-by-api)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/upload-multiple-media-by-api/),
sprawdź [repozytorium SVN](https://plugins.svn.wordpress.org/upload-multiple-media-by-api/)
lub czytaj [dziennik rozwoju](https://plugins.trac.wordpress.org/log/upload-multiple-media-by-api/)
przez [RSS](https://plugins.trac.wordpress.org/log/upload-multiple-media-by-api/?limit=100&mode=stop_on_copy&format=rss).

## Rejestr zmian

#### 1.6.0

 * Added optional REST API authentication.
 * Added admin settings page.
 * Added upload_files capability check.
 * Added detailed per-file API responses.
 * Added duplicate detection using a content hash.
 * Added maximum files per request setting.
 * Added maximum file size setting.
 * Added allowed MIME type settings.
 * Added optional post_id support.
 * Preserved the existing endpoint and field name.

#### 1.5.1

 * Fixed multiple-file handling for multipart/form-data requests.
 * Improved upload error handling.

## Meta

 *  Wersja **1.6.0**
 *  Ostatnia aktualizacja **1 tydzień temu**
 *  Włączone instalacje **10+**
 *  Wersja WordPressa ** 5.0 lub nowszej **
 *  Testowano do **7.1**
 *  Wersja PHP ** 5.6 lub nowszej **
 *  Język
 * [English (US)](https://wordpress.org/plugins/upload-multiple-media-by-api/)
 * Tagi
 * [api](https://pl.wordpress.org/plugins/tags/api/)[Headless WordPress](https://pl.wordpress.org/plugins/tags/headless-wordpress/)
   [media upload](https://pl.wordpress.org/plugins/tags/media-upload/)[multiple upload](https://pl.wordpress.org/plugins/tags/multiple-upload/)
   [rest-api](https://pl.wordpress.org/plugins/tags/rest-api/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/upload-multiple-media-by-api/advanced/)

## Oceny

Nie przesłano jeszcze żadnych recenzji.

[Twoja opinia](https://wordpress.org/support/plugin/upload-multiple-media-by-api/reviews/#new-post)

[Zobacz wszystkierecenzje.](https://wordpress.org/support/plugin/upload-multiple-media-by-api/reviews/)

## Zaangażowani

 *   [ sandeepjainlive ](https://profiles.wordpress.org/sandeepjainlive/)

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

 [Zobacz forum wsparcia](https://wordpress.org/support/plugin/upload-multiple-media-by-api/)