-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 upload issue #899
Comments
Can you share a JS fiddle to see what you are configuring and your expected outcome? |
I guess this is normal, because for multiple file upload only new added files should be uploaded. When i follow his steps i only see thumbnails of the last added files. Which is correct in my opinion. Because if every file is added to the widget when selected in browse to the has to be uploaded files list there is no possibility to "delete" them from the list. Because the delete button is only visible for already uploaded files. I have another issue regarding multiple files upload. Which i guess could have something to do with this issue (maybe something was changed in the meantime to fix this issue) I have also a multi upload widget (but without ajax upload) I have these filesnames "file1.pdf", "file2.pdf" , "file3.pdf", "file4.pdf". e.g. i have added these 3 files though browse to an empty upload But what happens only the "file 4" is shown in the preview. So it looks like that the js which renders the widget doesn't add the others. Other test i add "file1.pdf", "file2.pdf" , "file3.pdf" to an empty widget. I guess there is somewhere a check if some file is already added and permitted if added again. This could be easily checked here by trying to upload the same files again |
The problem why this i mentioned above is caused that in the So the same filename wouldn't be added again even if it wasn't uploaded yet. |
It is an expected occurrence. There is been some validation thought put here in the plugin. If you are using without ajax upload (it means you are using native HTML file input)... where you cannot append files -- file input is read only and will always store the latest file you selected (which means it will overwrite previous selection). Read docs for the usage modes and what is possible and not. |
@kartik-v yes thats correct, this is what @ruchisheth thought which is an issue. But try the fiddle which I have linked above and add some files. Then click browse and select the same files again. I don't want to append files. I just click browse and select the same files a second time. Or some additional files because i had forgot to select a relevant file. |
I will update over this |
Is resolved now. |
perfect |
Same issue for me, I understand it's the normal behaviour for the HTML field (without ajax). But the problem is that you add the number of files each time we open the file explorer, I mean, I select 2 files, it will show "2 files selected" in the input, then I go look for other 3 files for example, it will show "5 files selected", but only the last 3 will be uploaded. I will try to look for a workaround. |
Prerequisites
master
branch of bootstrap-fileinput.Steps to reproduce the issue
2 click browse button and select files
3 click browse button again and select different files again
Expected behavior and actual behavior
When I follow those steps, I see...
If set multiple files to true for control and clicking browse button for more than one time, then it shows thumbanails for all selected files but only uploads last selected files
Environment
Browsers
Operating System
Libraries
Isolating the problem
The text was updated successfully, but these errors were encountered: