I\'m saving an uploaded image using this code:
using (var fileStream = File.Create(savePath)) { stream.CopyTo(fileStream); }
When the im
I would recommend to put the following before CopyTo()
CopyTo()
fileStream.Position = 0
Make sure to use the Flush() after this, to avoid empty file after copy.
Flush()
fileStream.Flush()