Linux 软件免费装
Banner图

Upload Multiple Media by API

开发者 sandeepjainlive
更新时间 2026年9月5日 18:11
PHP版本: 5.6 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

file upload media upload rest-api multiple upload headless wordpress

下载

1.4 1.6.0 1.6.1 1.5.1 1.7.0

详情介绍:

Upload multiple images and media files to your WordPress Media Library through a dedicated REST API endpoint. Upload Multiple Media by API is designed for headless WordPress, mobile apps, external applications, frontend frameworks, and custom integrations that need reliable programmatic media uploads. Each uploaded file is validated, optionally optimized, checked for duplicates, added to the WordPress Media Library, and returned with detailed information in the API response.

屏幕截图:

  • Upload multiple media files with individual ALT text and receive detailed optimization and upload information in the JSON response.

常见问题:

Can I upload multiple files in one request?

Yes. Add multiple files using the mmbyapi_file_upload[] field.

Can I provide ALT text for uploaded images?

Yes. Use the optional mmbyapi_alt_texts[] field. ALT text is matched to files by array index.

Can I optimize uploaded images?

Yes. Enable Image Optimization in the plugin settings and configure the desired quality and maximum dimensions.

Will images be enlarged?

No. The maximum width and height settings are used to limit oversized images. Smaller images are not enlarged by the optimization process.

Can I disable image optimization?

Yes. Image optimization can be disabled from the plugin settings.

Does the plugin detect duplicate files?

Yes. Duplicate detection uses a SHA-256 content hash to identify matching files.

Can I attach media to a post?

Yes. Provide the optional post_id field with the ID of the existing WordPress post.

Does the plugin require authentication?

No. Authentication is optional and disabled by default for backward compatibility. For production environments, authenticated uploads are recommended.

What happens if some files fail?

The API returns a result for each file. When a request contains both successful and failed uploads, the endpoint returns HTTP 207.

Does the plugin work with headless WordPress?

Yes. The REST API makes it suitable for headless WordPress, Next.js, React, mobile apps, and other external applications.

更新日志:

1.7.0 1.6.1 1.6.0 1.5.1