-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Drag & Drop large file not copied when the file exceed 60M #969
Comments
Some discussion took place with a similar problem: |
Is it the web socket limitation? |
From the link above, it seems to be a limitation on the server side. With Apache, we can set the size either in .htaccess like ; Maximum allowed size for uploaded files. |
@lmcbout but this is using websocket no ? it's not an http post. So these limitations should not apply |
@hexa00 We have a limitation on something that prevent large file to be uploaded, As I said earlier, I don't know where, but the server does not allow us in Theia to have file larger than ~60M. |
It is a limitation outside of the Drag & Drop code otherwise, no files/folders would be transferred |
While debugging, I noticed that the large files get split into smaller packets ~ 10M and is sent from the client to the server |
@lmcbout I just mean that upload_max_filesize , applies to http post and not websockets. When you're sending something though websocket the server has no idea if it's a file upload.. it's just data. |
@hexa00 This is my understanding as well :) |
More investigation about the large file size in Theia: |
This is a problem in the vscode's json-rpc library because send closes the connection if you try to send with a full socket buffer see: https://developer.mozilla.org/en-US/docs/Web/API/WebSocket send() We need to throttle send so that the connection isn't lost. @svenefftinge could typefox work on this ? |
Drag & Drop large file. Follow up on issue #868
Tried on Chrome and Firefox: was able to transfer file 60M and the md5sum is ok, but when I try to drag a file of 80M, the browser stops with the following error:
main.js:816 Uncaught (in promise) Error: Connection got disposed.
at Object.dispose (main.js:816)
at connection.ts:14
at CallbackList.invoke (events.js:71)
at Emitter.fire (events.js:135)
at closeHandler (main.js:212)
at CallbackList.invoke (events.js:71)
at Emitter.fire (events.js:135)
at WebSocketMessageReader.AbstractMessageReader.fireClose (messageReader.js:126)
at WebSocketMessageReader.fireClose (reader.ts:72)
at reader.ts:31
The text was updated successfully, but these errors were encountered: