Topic: Automatic Upload
Hi,
I have a problem uploading a file. I'm trying to automatically upload one file at a time.
onUploadOutput(output: UploadOutput | any): void { if (output.type === 'allAddedToQueue') { } else if (output.type === 'addedToQueue') { this.files.push(output.file); // add file to array when added this.startUpload(output.file); <<< HERE } else if (output.type === 'uploading') { ...
startUpload(file: UploadFile): void { const event:UploadInput= { type:'uploadFile', file:file, url:'url_to_upload', method:'POST', data: { foo:'bar' }, }; this.uploadInput.emit(event); }
I have no error, no warning, just do not upload.
In previous versions, it worked.
Thanks.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Open
Specification of the issue
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 6.2.3
- Device: Desktop
- Browser: Chrome
- OS: Linux
- Provided sample code: No
- Provided link: No
Tags
Related topics
Damian Gemza staff commented 6 years ago
Dear Mobtex, Could you please provide me with a better description of your problem and your application? Do you have a backend which will handle a file uploading process? Also please describe which automatic uploading files means to you. Also, if you would provide me with a sample application on which I'll be able to debug your problem it would be great. Best Regards, Damian