Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Authorize fineUploader to send form even without file to upload #1971

Open
2 of 5 tasks
o3LL opened this issue Feb 20, 2018 · 2 comments
Open
2 of 5 tasks

Authorize fineUploader to send form even without file to upload #1971

o3LL opened this issue Feb 20, 2018 · 2 comments

Comments

@o3LL
Copy link

o3LL commented Feb 20, 2018

Hi !

Type of issue

  • Bug report
  • Feature request

Uploader type

  • 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.

if (this._storedIds.length === 0) {

Thanks !

@rnicholus
Copy link
Member

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?

@o3LL
Copy link
Author

o3LL commented Feb 20, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants