fine-uploader
fine-uploader copied to clipboard
Authorize fineUploader to send form even without file to upload
Hi !
Type of issue
- [ ] Bug report
- [x] Feature request
Uploader type
- [x] Traditional
- [ ] S3
- [ ] Azure
Feature request details
FileUploader integration in a form (see) with optional file upload throw "No files to upload." on form submit when there is no file in FileUploader.
Change FileUploader form integration to act like an empty field instead.
Possible fix
Add an optional option in the FileUploader constructor or by default Existing HTML Forms integraton dont throw errors on upload if there is no file.
https://github.com/FineUploader/fine-uploader/blob/401482ec7cda20b9c877f7731d798233769eb0da/client/js/uploader.basic.api.js#L430
Thanks !
Would you like to try a pull request with the necessary changes? You'll need to write some tests as well to ensure this actually works. I'm not sure it will be trivial, but maybe?
Sure, that's what I was planning to do. Just wanted to know if this feature was suitable in this project !