# PostBack

PostBack calls a web address for the files of an event: "a file was uploaded", with its name and the user, sent to your own application.

It is the older way. In version 27 an [HTTP task](Task-HTTP.md) in a job does the same and more, with the answer of the other side on record: use that for anything new. For telling another system about what happens on the server without any job, see [events and webhooks in the API](API-Events-and-Webhooks.md).

> [!NOTE]
> A server of version 27 built from the current sources comes with eleven plugins, and this one is not among them. Preferences still has its screen, which shows when the plugin's file is in the server's `plugins` folder, as it can be on a server that was upgraded from an earlier version, and where files that are not the server's own may be loaded: see [Writing a plugin](Plugins-Writing-Your-Own.md#getting-it-loaded). This page is written from that screen and the plugin's own help text; the plugin was not run.

## Settings

| Setting | Is |
|---|---|
| **Enabled**, **Debug** | as for every plugin. With **Debug** on, the log shows how the address was called. |
| **URL** | the address to call. Variables of the file and the user work in it. |
| **Basic Authentication Username (optional)**, **Password (optional)** | a login for the address. The password is stored encrypted. |
| **Post Data** | what to send with the call |
| **Alert notifications on failures.** | a failed call raises an alert |
| **Retry x times on failure** | how often a failed call is tried again |
| **Maximum files per event that post without delay** | up to this many files of one event are posted at once |
| **Delay between event posts** | past that number, the wait between calls, so that a burst of small files does not flood the other server |
| **Only use most recent item.** | for an event that runs at once, only the file that caused it is posted |

## Using it

The plugin does nothing by itself. An [event](Users-Events-Editor.md) of a user runs it: action **Run Plugin**, plugin **PostBack**.
