The picker instance returned from client.picker can be controlled with a few methods: Options for the picker are documented here. If you are here to use the picker widget, it can be initialized from the Filestack client by calling client.picker(options). Major releases will bo listed (with detailed examples) in releases folder starting from version 3.0.0 Live examples (JSFiddle)Įxamples can be run locally with: npm run examples Picker Quick Start It can be retrieved from both the Filestack CDN and the unpkg CDN: This is useful if you are using script tags on a web page instead of bundling your application. The pre-bundled browser module is also available in UMD format. For example, client.upload treats the file argument as a file path in Node but in browsers it assumes a Blob object. Both modules follow the same API, but some methods behave differently based on their runtime. When building for the browser, newer tools (like Webpack, Rollup, and Parcel) follow the browser field, which will resolve to the pre-bundled ES module. Node projects which depend on filestack-js will follow the main field in package.json. browser for the pre-bundled ES module (intended for browser runtimes).main for the CommonJS module (intended for Node runtimes).The package.json specifies two separate modules: Where is one of the hashes from integrity field in manifest.json file Node CommonJS module const client = require( 'filestack-js').init( 'apikey') Module Overview Usage Browsers ES module import * as filestack from 'filestack-js' Ĭonst client = filestack.init( 'apikey') UMD module const client = filestack.init( 'apikey') To get your free API key, sign up for a Filestack account here: The Filestack Picker - an upload widget for the web that integrates over a dozen cloud providers and provides pre-upload image editing.An interface to the Filestack Processing Engine for transforming assets via URLs.A multi-part uploader powered on the backend by the Filestack CIN.Javascript SDK for the Filestack API and content management system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |