=== Pandafile – File Requests & Big File Sending ===
Contributors: 3xaya
Tags: file upload, file request, large files, file transfer, send files
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Let visitors upload big files to you with a Pandafile upload form, and send files from your Media Library – up to 1000 GB, EU servers.

== Description ==

[Pandafile](https://pandafile.co) sends and receives big files: up to 1000 GB per transfer, resumable uploads, stored on servers in Helsinki, Finland (EU).

This plugin connects your site to your Pandafile account:

* **Upload form (file request)** – add the *Pandafile upload form* block or the `[pandafile_request]` shortcode to any page. Visitors upload files straight to your Pandafile account (no account needed for them, no file size limits of your web host). You get an email when files arrive and download them from your Pandafile dashboard. Your Pandafile branding (logo, colour, background) is shown on the form.
* **Send with Pandafile** – select files in the Media Library and send them as one Pandafile transfer: get a share link, or email it to up to 10 recipients, optionally with a password.
* **Test mode** – use a test key (`pf_test_…`) to try sending without emailing anyone; test transfers expire after 24 hours.

Upload forms (file requests) need Pandafile **Pro** or **Team**. Sending works with any plan that includes the API (Pro and Team).

= Privacy and security =

* Your API key is stored encrypted in your WordPress database and is only used for server-to-server requests to Pandafile. It is never sent to visitors' browsers.
* The upload form is an iframe of `https://pandafile.co/req/<id>?embed=1`. Visitors' files go directly to Pandafile – they never pass through your web server.
* Settings and sending need administrator rights by default (filter `pandafile_send_capability` to change who may send). All forms are protected with nonces.

= External service =

This plugin relies on the Pandafile service (https://pandafile.co), operated by 3XAYA LTD, United Kingdom. It sends data to Pandafile only when you use it:

* When you save a page with an upload form (or preview the block): the form's title and message are sent to create a file request (`POST https://pandafile.co/api/v1/requests`).
* When you send media: the files, their names, sizes and types, and the title, message, password and recipient addresses you enter are sent to Pandafile (`https://pandafile.co/api/v1/transfers` and `https://pandafile.co/api/upload`).
* When you click *Test connection*: your API key is checked (`GET https://pandafile.co/api/v1/me`).
* Visitors who view a page with an upload form load `https://pandafile.co/req/<id>?embed=1` in an iframe; files they upload go to Pandafile.

Terms of service: https://pandafile.co/terms · Privacy policy: https://pandafile.co/privacy

== Installation ==

1. Install the plugin from *Plugins → Add New* (search for "Pandafile") or upload the zip, then activate it.
2. Sign in at https://pandafile.co, open *Dashboard → Domain & API* and create an API key (`pf_live_…`, scope *write*).
3. In WordPress, open *Settings → Pandafile*, paste the key, save, and click *Test connection*.
4. Add the *Pandafile upload form* block to a page (or the shortcode `[pandafile_request title="Send us your files"]`) and publish.

== Frequently Asked Questions ==

= Which Pandafile plan do I need? =

The API comes with Pandafile Pro and Team. File requests (upload forms) are a Pro/Team feature as well.

= Where do uploaded files go? =

Into your Pandafile account (Dashboard → Requests). Nothing is stored on your WordPress server.

= Can I use a request I already made on pandafile.co? =

Yes: `[pandafile_request id="abc123xyz9"]`, or paste the id or link into the block's *Existing request* field.

= Shortcode options =

`[pandafile_request title="…" message="…" height="800" id="…"]` – all optional. Without `id`, the plugin creates one file request per title and message and reuses it.

= Does it work in test mode? =

Sending from the Media Library does (test transfers: nobody is emailed, they expire after 24 hours). New upload forms need the live key, because file requests have no test mode.

= Where is "Send with Pandafile" in the Media Library? =

Switch the Media Library to the list view, select files and choose *Send with Pandafile* from the bulk actions – or use the *Send with Pandafile* link under a file's name or on its edit screen.

= What happens when I delete the plugin? =

Its settings and cached request ids are removed from WordPress. Your file requests, transfers and files stay in your Pandafile account.

== Screenshots ==

1. The upload form on a page, with your Pandafile branding.
2. The Pandafile upload form block and its settings in the editor.
3. Settings → Pandafile.
4. Sending files from the Media Library.

== Changelog ==

= 1.0.0 =
* First release: upload form block and shortcode, Send with Pandafile in the Media Library, test mode.

== Upgrade Notice ==

= 1.0.0 =
First release.
