Syntax

Filestack has added an additional layer of security that will be required in order to perform an overwrite call. This change is detailed here.

Write requests will require a valid filestack policy and signature with the write permission. Details on creating and using Filestack policies and signatures can be found in the Security section of the documentation.

Parameters

target

the file to overwrite

Target

Blob

blob

A Blob pointing to the file you would like to write to. Note that if the Blob was pulled from a user's cloud storage service (Dropbox, etc.), the write will directly modify the file in their cloud storage. If the Blob was generated by a store operation or loaded from the user's computer, the write will edit the stored copy.

data

the file to replace the original

Data

Blob

data

The data to write to the target file, or an object that holds the data. Can be raw data, a Blob, a DOM File Object, or an <input type="file"/>.

options

An optional dictionary of key-value pairs that specify how the write function behaves:

Base64 Decoding

Boolean

base64decode: true

Specify that you want the data to be first decoded from base64 before being written to the file. For example, if you have base64 encoded image data, you can use this flag to first decode the data before writing the image file.