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
B2: Upload/Sync - Check fileLength if there is no SHA1 in response #9734
Comments
I can work on this, and the other one.[[br]] |
The threshold for large file uploads in B2 is currently set at |
We do file comparison using checksum, file length and modification date (in that order). See |
Replying to [comment:1 cyborgduck]:
We welcome pull requests on (https://g.iterate.ch/projects/ITERATE/repos/cyberduck/browse). |
We always include the |
Sorry to reopen it Mr. Dkocher.[[br]][[br]] I have a spare machine now with quite some bandwidth, and I just tried the Beta today.[[br]] Now the fix was: Enable upload timestamps. Even to just continue the transfers.[[br]] This is why I thought there is no length check. (I did check the code, I don't want to rob your precious time.)[[br]][[br]] Also I never seen that picture pop up that you posted. Is it in Nightly only? Are you sure it's available on b2?[[br]] Thank you, and thank you for helping out. (I would have posted half my stuff in a Forum if there was one, but I can understand why some people dislike forums.) |
Ah yes, I am using Windows as platform, not OS X. But since the core is Java, I don't think that should matter... but maybe I am wrong, I don't know. Just though I should note that. |
Replying to [comment:8 cyborgduck]:
|
Then I am clueless, sir.[[br]] Simply upload a few files to b2, then try continuing the transfer with Sync or Upload.[[br]] Thank you! |
If you upload a file that is transferred as a large upload it will not be visible to synchronize when interrupted. Please restart the upload to resume a large file upload. |
Okay today I had to grab a few files (download). A few of them downloaded, then I stopped transfer.[[br]] So it's there for downloads, but missing for uploads?[[br]] |
Replying to [comment:11 dkocher]:
You stop the transfer, the continue.[[br]] |
Milestone renamed |
What is the idea about:[[br]]
Made a ticket recently (#9733), regarding SHA1 verification.[[br]][[br]]
But, there is no SHA1 for large files.[[br]][[br]]
-Implementation:* [[br]]
0) Ask BackBlaze dev support about what is a LARGE FILE.[[br]]Maybe CyberDuck already has a limit, and we know, or even better, we define it.[[br]]
See: (https://www.backblaze.com/b2/docs/large_files.html)[[br]][[br]]
IF the localfile is SMALLER than the LARGE_FILE size, CALCULATE our SHA1 sum. This is a MUST, first step!
Submit our SHA1 properly, check if the uploaded file has our SHA1.[[br]]
IF our localfile is BIGGER than LARGE FILE: Get fileLength! We already have this, it's "filelength()" of File, in Java.[[br]][[br]]
Store this length, do the upload, then check the uploaded file's length with get_file_info. But maybe we get this back in the response.[[br]]
[[br]]
ORDER depends on Upload/Download.[[br]][[br]]
Ask away!
Attachments
Screen Shot 2016-10-16 at 21.47.48.png
(41.5 KiB)The text was updated successfully, but these errors were encountered: