-
Notifications
You must be signed in to change notification settings - Fork 96
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
Bug - UsedSpace is calculated too early in Core.UI.js #604
Comments
Hi @BuilderNSV Hence we never had an issue related to this, I would like to understand what the acutal user error would be / is. Thanks! |
Hi @hanneshal,
I knew that WebMaxFileUpload can be modified in Sysconfig. I write my step with direct changing of value just for the easest way to reporduce.
I write about MaxSizePerFile because I have limited by 'max_allowed_packet' value of my MySQL server (8Mb) but I need to satisfy recomendations of Installer to have WebMaxFileUpload >= 64Mb. So I limited users by adding an attachment of size no more than 8Mb via MaxSizePerFile parameter. On the other hand, the issue is not related to MaxSizePerFile parameter only but it's related to uploading a group of files at once. If you take a look on Core.UI.js, line 631, you will see that File.size is added to UsedSpace but some checks on errors have not yet finished after this line. If some of conditions become true, File.size is taken into account of UsedSpace but file is not really uploaded and not eat used space.
I can't upload files of such small size by unknown reason. So I set WebMaxFileUpload = 6000000, MaxSizePerFile = 1100000 and prepare 2 files:
|
Environment
Expected behavior
UsedSpace is calcuated after a new file is really uploaded in Core.UI.js
Actual behavior
UsedSpace is calcuated before all error conditions have been passed in Core.UI.js.
How to reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: