-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
Description
If I select a new file to upload, everything works fine.
But then I select that file again (I've uploaded it before) and it fails to upload, crashes when calling uploader.finish()
Logs:
io.tus.java.client.ProtocolException: unexpected status code (400 or 500) while uploading chunk
17:55:09.578 System.err en....atech.vovnews W at io.tus.java.client.TusUploader.finishConnection(TusUploader.java:343)
17:55:09.579 System.err en....atech.vovnews W at io.tus.java.client.TusUploader.finish(TusUploader.java:321)
17:55:09.579 System.err en....atech.vovnews W at io.tus.java.client.TusUploader.finish(TusUploader.java:306)
I checked and found uploader.uploadChunk() = -1, before do do { ...} while(uploader.uploadChunk() > -1)
I thought clearing chunk cache might be a solution but I couldn't find that method.