-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Upload timeouts after 30s #876
Comments
+1 thought its just me |
Marking as a bug. |
@ssddanbrown - I'm able to reproduce this. It seems dropzone has a default timeout of 30s. Surprising thing is that on timeout, the error callback is not triggered. As per a thread on Gitlab - https://gitlab.com/meno/dropzone/issues/23#note_58283962, the only way to get around this is by registering a callback in the sending event,
The other issue is that setting a timeout of 0 is fine, but if the server doesn't respond for a long time, the file upload will be stuck and the user will have to understand that they should refresh the page. I think we should increase the timeout significantly but not set it to 0. What do you think? |
Sorry, somehow I haven't got the notification about your reply :) Best option? Probably increasing the timeout to few minutes and giving an option either in the configuration file or in the UI to extend it even more. Or even better option - to do the above, but even if the timeout is reached, the uploading component shouldn't stop upload, but only should display notification, that "it takes more than assumed - check if everything is OK with your upload". |
@Abijeet |
@iondive - You'd have to add a But you'll have to rebuild the JavaScript files so it might be a better idea for us to fix it and for you to update BookStack. @ssddanbrown - Did you get a chance to review my comment here - #876 (comment) |
@Abijeet Sorry, Totally missed this.
Yeah, totally agree. |
Here is a workaround for dockerized version, for those who can't work with bookstack with this bug, like me.
// [...]
function mounted() {
let container = this.$el;
let _this = this;
this._dz = new DropZone(container, {
timeout: 3600000,
addRemoveLinks: true,
// [...] The "patch" is
It's so simple fix, so I wonder why do we need to wait so long for it? |
For Bug Reports
solidnerd/bookstack:0.21.0
Expected Behavior
With these settings setup and shown properly in
phpinfo()
:I expect to be able to upload >100MB file.
Current Behavior
Upload always gets killed after 30s. I've checked the underlying communication and there's nothing there. I suspect the 30s timeout is built in into the client request.
Steps to Reproduce
Try to upload file for which the upload process takes more than 30s.
The text was updated successfully, but these errors were encountered: