
Hello, if I upload an image using the .NET SDK, the mimetype for my png images is set to "application/octet-stream" instead of "image/png".
This is my code
```public async Task<string> CreateFileAsync(string bucketId, string filename, string content, string mimeType)
{
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(content));
var inputFile = InputFile.FromStream(stream, filename.ToLower(), mimeType);
var fileId = ID.Unique();
inputFile.Path=filename.ToLower();
try
{
var fileToWrite = await _storage.CreateFile(bucketId, fileId, inputFile, new List<string>());
return fileToWrite.Id;
}
catch (Exception ex)
{
Console.WriteLine($"Error: {ex.Message}");
}
return "";
}```
I added "inputFile.Path=filename.ToLower();" just in case but no difference. What could be the problem?
selfhosted Appwrite Version: 1.4.13 Appwrite Nuget: 0.7.1
Recommended threads
- Properly contained appwrite main app can...
Hello! We tried to reinstall our main self-hosted appwrite with a new method but the main app 2 mins after launch throw this error: ```2025/06/22 16:16:14 s...
- Broken message
https://github.com/appwrite/appwrite/issues/10081 I just realized that I can just build appwrite myself, was this bug fixed in latest dev release?
- 404 errors after 7 Days
Local hosted Appwrite via docker. Last version and current version. After exactly 7 days Appwrite stops working. I get 404 route not found, cannot access anyth...
