Skip to content
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

Update dotnet sdk create file example #683

Merged
merged 1 commit into from
Jun 29, 2023
Merged

Conversation

stnguyen90
Copy link
Contributor

What does this PR do?

The latest version of our SDKs use InputFile.

Test Plan

Manually generated and got:

using Appwrite;
using Appwrite.Models;

var client = new Client()
    .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
    .SetProject("5df5acd0d48c2") // Your project ID
    .SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key

var storage = new Storage(client);

File result = await storage.CreateFile(
    bucketId: "[BUCKET_ID]",
    fileId: "[FILE_ID]",
    file: InputFile.FromPath("./path-to-files/image.jpg"));

Related PRs and Issues

None

Have you read the Contributing Guidelines on issues?

Yes

The latest version of our SDKs use InputFile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants