Event Listeners
Event listeners are functions that run when something happens in an application. The Filestack File Picker for the web accepts callback functions in its options and calls them at set points during an upload.
File Picker Callbacks
onOpenandonClose: the picker opens or closesonFileSelected: the user selects a fileonUploadStarted: the upload of the selected files startsonFileUploadStarted,onFileUploadProgress,onFileUploadFinished,onFileUploadFailed: one file starts, progresses, finishes or failsonUploadDone: all uploads finish. The callback receives the upload results, including each file’s handle and URL.onCancel: the user cancels an upload
Example
client.picker({ onUploadDone: (res) => console.log(res) }).open();
Server-Side Events
To receive events on a server, use webhooks. Filestack sends an HTTP POST request to your URL for uploads, conversions, overwrites, deletions, video conversions and workflow results.
Related terms
SDK (Software Development Kit)
Programming libraries and tools for integrating Filestack services.
File Picker
Filestack’s customizable upload widget with multiple source options.
Webhooks
Event-driven communication mechanism for asynchronous operations.
Workflows
Background processing of uploaded files with tasks and logic rules.
More in Platform and APIs
This page is one of 94 terms in the Filestack glossary.
Browse all terms