Close picker. This operation is idempotent.
Specify a list of files to open in the picker for cropping
// <input id="fileSelect" type="file">
const inputEl = document.getElementById('fileSelect');
const picker = client.picker({
onUploadDone: res => console.log(res),
});
inputEl.addEventListener('change', (e) => {
picker.crop(e.target.files);
});
// Or pass an array of URL strings
const urls = [
'https://d1wtqaffaaj63z.cloudfront.net/images/fox_in_forest1.jpg',
'https://d1wtqaffaaj63z.cloudfront.net/images/sail.jpg',
];
picker.crop(urls);
Open picker. This operation is idempotent.
Cancel picker uploads. This operation is idempotent.