
Hi there,
I am currently using the SDK of .NET and I am facing an issue when using the GetFileDownload
-function.
Whenever I use the function I get a null
-value as return.
Appwrite.Models.File fileTest = await storage.GetFile(bucketId: bucketId,fileId: image.OriginalFileId);
byte[] originalImage = await storage.GetFileDownload(bucketId: bucketId,fileId: image.OriginalFileId);
To narrow it down, I used the GetFile
-function as well (as you can see above) and I am getting a correct response, with all the file details such as filename etc. The file has authorized the user to read, update and delete (authentication using JWT).
In the appwrite logs I am getting the error:
[Error] Message: Storage bucket with the requested ID could not be found.
[Error] File: /usr/src/code/app/controllers/api/storage.php
[Error] Line: 1014
In the GetFileDownload
-function itself in the SDK I don't see the URL-parameter projectId passing.
A general question: Does anyone know, how I can debug the .NET SDK?
BTW: I already tried to contribute by creating an PR for an other issue, but there is little movement in that repository.

For your PR, I suggest posting in #👷│maintainers about it to remind us about it. Im not so good at looking at PRs

@Aditya Oberai have you noticed any problems with downloading file using the dotnet SDK?
Recommended threads
- Problems following https://appwrite.io/b...
To me it is unclear what the author means when he writes "Please note that the Appwrite instance should be shut down". I am using docker. What exactly am I supp...
- SDK mismatch
Hi there, The following warning is currently appearing in my console: ``` Warning: The current SDK is built for Appwrite 1.8.0. However, the current Appwrite...
- Can't read files from s3 storage directl...
I try to download the files stored by appwrite directly from my S3 provider. The bucket is not encrypted and no gzip but the files seem not to be stored there i...
