Skip to content

Function: checkFileBeforeUpload() ​

ts
function checkFileBeforeUpload(file): FileCheck;

Client-side pre-check mirroring the API's limits; saves a doomed round trip.

Parameters ​

file ​

name ​

string

size ​

number

type ​

string

Returns ​

FileCheck

Released under the Apache-2.0 License.