=== MCOD Temp Storage ===
Contributors: crleguizamon
Donate link: https://www.paypal.com/paypalme/cristian18josue
Tags: temporary storage, api upload, rest api, media
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Provides a REST API to temporarily upload files (images, videos, PDF) that are automatically deleted after 2 hours.

== Description ==

MCOD Temp Storage is designed for automation workflows that require a quick and temporary place to store binary files. 
Files uploaded through the provided API are automatically wiped globally (both database records and physical server files) after 2 hours of their creation, ensuring your server remains clean and clutter-free.

* Provides a Bearer Token Authentication method via a centralized WordPress Settings page.
* Fully supports native WordPress upload functionality for security and reliability.
* Silent Cron cleanup task runs every 15 minutes to guarantee timely deletion.

== Installation ==

1. Upload the entire `mcodtemp-storage` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to Settings > MCOD Temp Storage and generate your Bearer API Token.
4. Send `POST` requests to `/wp-json/fywts-temp/v1/upload` with your token in the `Authorization` header and the file payload in the `file` parameter.

== Changelog ==

= 1.0.0 =
* Initial release.
