fine-uploader icon indicating copy to clipboard operation
fine-uploader copied to clipboard

Authorize fineUploader to send form even without file to upload

Open o3LL opened this issue 7 years ago • 2 comments

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 !

o3LL avatar Feb 20 '18 13:02 o3LL

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?

rnicholus avatar Feb 20 '18 16:02 rnicholus

Sure, that's what I was planning to do. Just wanted to know if this feature was suitable in this project !

o3LL avatar Feb 20 '18 17:02 o3LL