-
Notifications
You must be signed in to change notification settings - Fork 186
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
Uploading a 0kb file to a secret file drop results in an error however the file appears in the folder multiple times. #10469
Comments
I'm moving this to the ocis repo because I think Web is handling things correctly. When uploading a 0 byte file, the server is missing the In a regular context Uppy will retry the exact same request again. The server includes the |
@JammingBen How the Web uses the location in this case? The zero-byte file is simply created, it is not going to the tus. |
The underlying lib we use (Uppy) does something with this header, I can't say what exactly. I'd need to check the vendor code. But why is oCIS sending a |
I did some further debugging. As mentioned above, the issue is that the server doesn't send a I tried to handle this exception in Web but it's not that easy. Web is assuming that all file uploads are being handled via tus (when enabled) and therefore expects the server to follow the tus protocol under any circumstance. If this isn't the case, it might fail. IMO it's up to the server to provide a clean API here. |
Describe the bug
Uploading a 0kb file to a secret file drop results in an error however the file appears in the folder multiple times.
Steps to reproduce
Expected behavior
A successful upload of a single file or an error saying the file is empty.
Actual behavior
An error is shown saying upload failed but the upload was successful.
Setup
https://ocis.ocis-keycloak.rolling.owncloud.works/
The text was updated successfully, but these errors were encountered: