=== QDR Temporary Shared Storage ===
Contributors: qdr
Tags: file sharing, media, rest api, temporary storage, password protection
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

WordPress plugin for temporary file sharing with REST API support and password protection.

== Description ==

QDR Temporary Shared Storage extends WordPress functionality by providing a REST API interface to upload temporary media files and share them via password-protected download links.

= Key Features =

* Upload large media files via REST API with chunked uploads
* Password protection for all shared files
* Automatic expiration of shared files
* Download count tracking
* Admin interface for managing shared files
* Configurable storage limits
* REST API for integration with external applications

= REST API Endpoints =

* `POST /wp-json/qdr-tss/v1/upload/init` - Initialize chunked upload
* `POST /wp-json/qdr-tss/v1/upload/chunk` - Upload a file chunk
* `POST /wp-json/qdr-tss/v1/upload/finalize` - Finalize upload and create shared file
* `GET /wp-json/qdr-tss/v1/media/{id}` - Get shared file details
* `PUT /wp-json/qdr-tss/v1/media/{id}` - Update shared file properties
* `DELETE /wp-json/qdr-tss/v1/media/{id}` - Delete shared file
* `GET /wp-json/qdr-tss/v1/media` - Get collection of shared files

= Translations =

* English

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/qdr-temporary-shared-storage` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Configure the plugin settings in 'Settings > Shared Storage'.

== Frequently Asked Questions ==

= How do I use the REST API? =

You need to include the API key in your requests as an HTTP header:

```
X-Api-Key: your-api-key-here
```

See the plugin settings page to view or generate your API key.

= How large can uploaded files be? =

The plugin supports files of any size through chunked uploads. The maximum total storage size can be configured in the settings.

= How long are files kept? =

Each file has configurable 'Active From' and 'Active To' dates. Files are automatically deleted after their expiration date. By default, files expire 30 days after upload.

= Can I manually delete expired files? =

Yes, you can manually purge expired files from the Settings > Shared Storage page.

== Screenshots ==

1. Admin interface for managing shared files
2. Settings page
3. Download page

== Changelog ==

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.0 =
Initial release
