Ich verwende Filestack (aka filepicker.io) in meiner Angular 4 App. Wenn ich eine Datei auswähle (und vor dem Hochladen), wird sie automatisch hochgeladen. Also, nachdem ich hochladen, habe ich 2 Dateien hochgeladen. Was mache ich falsch? :(Filepicker.io (Filestack) lädt zweimal hoch
dies ist mein Code:.
async showPicker() {
const client = filestack.init('MyApiKey');
const result = await client.pick({
fromSources: ['local_file_system', 'webcam', 'imagesearch', 'facebook', 'instagram', 'googledrive', 'dropbox', 'picasa'],
maxFiles: 1,
minFiles: 1,
transformations: {
crop: {
force: true,
aspectRatio: 1
}
},
accept: ['image/*']
});
const url = result.filesUploaded[0].url;
this.uploadedFileUrls.push(url);
}
PS Ich habe bereits diese Filestack with Angular 2