Skip to content

Commit 3a41fa7

Browse files
committed
Include image in build output directory for Storage API example
1 parent ed4e987 commit 3a41fa7

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Create File
178178
var file = await storage.CreateFile(
179179
bucketId: bucket.Id,
180180
fileId: ID.Unique(),
181-
file: InputFile.FromPath("[DIRECTORY_PATH]/appwrite-overview.png"),
181+
file: InputFile.FromPath("appwrite-overview.png"),
182182
permissions: new List<string> { Permission.Read(Role.Any()), Permission.Write(Role.Any()) });
183183
Console.WriteLine("Done");
184184
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Restore all project dependencies:
2020
```sh
2121
dotnet restore
2222
```
23-
Replace `[ENDPOINT]`, `[PROJECT_ID]` and `[API_KEY]` with your credentials, `[FUNCTION_ID]` with the id of any Appwrite function you would like to test and `[DIRECTORY_PATH]` with the path of your project directory in *Program.cs*.
23+
Replace `[ENDPOINT]`, `[PROJECT_ID]` and `[API_KEY]` with your credentials, and `[FUNCTION_ID]` with the id of any Appwrite function you would like to test in *Program.cs*.
2424

2525
To run your Playground, run following command:
2626

playground-for-dotnet.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@
88
<PackageReference Include="Appwrite" Version="0.4.0" />
99
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
1010
</ItemGroup>
11+
<ItemGroup>
12+
<None Update="appwrite-overview.png">
13+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
14+
</None>
15+
</ItemGroup>
1116
</Project>

0 commit comments

Comments
 (0)