You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
We are using SDK v12 (12.8.0) and uploading blob files to azure storage.
The problem is that the API seems to create a "root" folder for the container, which seems odd.
The code below creates this file in container box:
box/test/myfile.txt
while I would expect this:
test/myfile.txt
var localfile = "test.txt";
var containerName = "box";
var file = "test/myfile.txt";
var sc = new StorageCredentialsSharedAccessSignature(sasToken.Token);
var container = new CloudBlobClient(URI.create(sasToken.Uri),sc).getContainerReference(containerName);
var blobRef = container.getBlockBlobReference(file);
blobRef.uploadFromFile(localfile)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We are using SDK v12 (12.8.0) and uploading blob files to azure storage.
The problem is that the API seems to create a "root" folder for the container, which seems odd.
The code below creates this file in container box:
box/test/myfile.txt
while I would expect this:
test/myfile.txt
The text was updated successfully, but these errors were encountered: