Immediately start uploading after the file select #219
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is there a way to instruct it to immediately start uploading after file select? I have to manually trigger the upload method by doing
uploader.queue[0].uploadon the click of another button.https://github.com/valor-software/ng2-file-upload/blob/development/components/file-upload/file-uploader.class.ts#L17
Thanks so much.
BTW, sorry for the stupid question. Didn't realize it was that easy.
@ammar91 I don't think it is a stupid question because it isn't in the documentation. The documentation says that the only possible FileUploader parameters are url and authToken.
You can use the setOptions method on your instance of the uploader and pass "autoUpload: true", or set the autoUpload property on your instance to true.
We could just bind to the
changeevent of theinput[type="file"]element.Why is this issue is still open??
As @fojt points out in the now, broken link, the FileUploader can receive an
autoUpload: booleanattribute to achieve the autoupload.Note aside, the current README doesn't provide enough documentation and some of the examples are kinda old.