Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple file selection when using single file configuration #114

Closed
gael-wogenstahl opened this issue Jan 7, 2015 · 3 comments
Closed
Labels

Comments

@gael-wogenstahl
Copy link
Contributor

I'm using http://demos.krajee.com/widget-details/fileinput widget as an AJAX single file upload field but bumped into the possibility to select multiple files before starting to upload or submitting my form.
Indeed, each time I use Browse, the file I select seems to be added to a queue like it would in a multiple file upload configuration and the field reports n files selected as shown in the image below.
image

Wouldn't it be better to replace the previously selected file by the new one and display only one file name in the field in a single file configuration ?

@kartik-v
Copy link
Owner

kartik-v commented Jan 7, 2015

Currently, the ajax upload for the plugin has been designed for appending files for every browse - and not for only a single file upload.

If there is only one file to be uploaded... one could normally set ajax to false and read the data from the native file input - in most cases.

This maybe an enhancement for later for including in the plugin. I am recording an enhancement for this and will keep this issue open.

@kartik-v kartik-v added bug and removed enhancement labels Jan 7, 2015
@kartik-v
Copy link
Owner

kartik-v commented Jan 7, 2015

Ok I have updated to fix this. You may check now.

@gael-wogenstahl
Copy link
Contributor Author

OK thanks ! You're doing an awesome job with those widgets.
As for using AJAX in single file upload I need it since I'm uploading heavy files and therefore using your progress bar as an indicator for the user while the classic file input without AJAX doesn't send feedback to the user until upload is finished.

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

No branches or pull requests

2 participants