Getting Started

Filestack Architecture

File Upload

File Export (Save To)

Responsive Images

Image Transformations

Document Transformations

Video Transcoding

Audio Transcoding





Filestack Viewer


Supported Cloud Drives

Filestack Recipes

Filestack Integrations

Filestack SDKs

Register for an API key

Uploading locally stored files with Filestack

How can you upload files from your computer or mobile device with Filestack?

This is all you need to get started. A simple pick.

Sample Code
filepicker.pick( { mimetypes: ['*/*'], container: 'modal', services:['COMPUTER'], }, function(Blob){ console.log(replaceHtmlChars(JSON.stringify(Blob))); }, function(FPError){ // console.log(FPError.toString()); - print errors to console } );

Understanding how local file uploads work with Filestack

When you perform a pick on a file from your computer or mobile device, that file gets uploaded and stored to Filestack's servers where it will be accessible online. However, if you have configured one of our many storage options, then Filestack will treat a simple pick as a pickAndStore and deposit that file into your personal cloud storage.

Smaller Files and Filestack

For both v1 and v2 of the Filestack API, if the file that is being uploaded is less than 1mb and the source is a desktop, or the file is less than 200kb and the source is a mobile device, then Filestack is transferring the file data via a standard ajax post request to the Filestack REST API.

Larger Files and Multipart Uploads

If the file being uploaded is larger than 1mb and the source is a desktop, or the file is larger than 200kb and being uploaded from a mobile device, then Filestack utilizes a multipart upload method. The file is divided into 1mb chunks which are then uploaded in parallel (many chunks at the same time). Filestack creates a maximum of 1000 chunks, so for bigger files the chunks may be proportionately larger. If a specific chunk fails to upload, Filestack will retry uploading that chunk. It will attempt up to 10 retries. Filestack's multipart uploads are resilient and use a generous timeout limit before attempting to upload a chunk from the beginning. Once all of the file chunks have reached their destination, they are reassembled into a complete copy of the original file. Depending on the size of the file being uploaded, the reassembly process can take a significant chunk of time. This process often begins at around the 85% mark of the upload progress bar. If you are dealing with large files, we urge you to be patient. When measured against other uploading techniques and services, large files are uploaded up to 20% faster when uploaded using filestack.