-
Notifications
You must be signed in to change notification settings - Fork 509
Azure Storage blob versioning #1229
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
Comments
The code of the azurestore has slightly changed since we migrated to a newer Azure SDK in #1205, but it seems you are referring to these lines: tusd/pkg/azurestore/azureservice.go Lines 196 to 210 in a50bc42
The code after Maybe @omBratteng can shed some light on this as well. As far as I know, he doesn't work with tusd anymore but he wrote the initial version of azurestore and might remember some details why |
I don't exactly remember. @MariuszBartnik how are you downloading the blob? |
@omBratteng Downloading the blobs from Azure storage is currently implement without the use of tusd package. I am doing this in the NestJs server using Azure SDK for Typescript. @Acconut I am currently working on the implementation with |
@MariuszBartnik Just wanted to check in and ask how things have turned out? Did you manage to get tusd running in a way to replace the previous file? |
@Acconut Yes, I've been able to use tusd for uploading files in my project with the blob versioning enabled. As mentioned previously I had to change |
That's great to hear! Do you it would be helpful to include this change in tusd as well so other users can benefit as well? Would you be willing to open a PR for that? |
I have a Azure Storage account with blob versioning functionality enabled. I want to upsert file, by providing the same path for blob as the one, that already exists on the storage and create a new version of this file in this way. I was doing this without any problems on my previous setup, which was an Express app with multer streaming files to Azure, but now I want to migrate to using tusd instead.
I have noticed an issue with this approach though. When I try to download the updated file I am still getting the original one, instead of a new one, even if the upload was a success. I've notice that the issue is connected to this piece of code in the
getOffset
function inazureservice.go
file.I might be missing something, so I wanted to ask if we really need to get the block list for
azblob.BlockListAll
instead ofazblob.BlockListUncommitted
? With this setup function is returning blocks for both files - updated and original.The text was updated successfully, but these errors were encountered: