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

Problem with uploading multiple files when one of them is uploaded by parts. #1614

Closed
rooney1237 opened this issue Aug 22, 2016 · 4 comments
Closed

Comments

@rooney1237
Copy link

when you try to upload multiple files and one or more of them is uploaded by chunks the input get mixed between chunk parts and whole files. I managed to fix the problem by adding the following code.
screenshot_1

@nao-pon
Copy link
Member

nao-pon commented Aug 23, 2016

@rooney1237 Would you show this code as text?

@nao-pon
Copy link
Member

nao-pon commented Aug 23, 2016

@rooney1237 Probably fixes with next code. Please try it.
from

                            if (chunk == null) {
                                self.error(self.i18n('errUploadFile', blob.name) + ' ' + self.i18n('errUploadFileSize'));
                                cnt--;
                                total--;
                            } else {
                                total += chunks;
                            }

to

                            if (chunk == null) {
                                self.error(self.i18n('errUploadFile', blob.name) + ' ' + self.i18n('errUploadFileSize'));
                                cnt--;
                                total--;
                            } else {
                                total += chunks;
                                size = 0;
                                fcnt = 1;
                                c++;
                            }

@rooney1237
Copy link
Author

Worked too, thank you!

@nao-pon
Copy link
Member

nao-pon commented Aug 23, 2016

Thanks. You,too. 👍

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

No branches or pull requests

2 participants