Я нашел единственный способ создать файл с содержимым на webapi:
Код: Выделить всё
using (var memoryStream = new MemoryStream())
{Task.Run(async () =>
{
await filepond.CopyToAsync(memoryStream);
}).Wait();
memoryStream.Seek(0, SeekOrigin.Begin); // Reset the position to the beginning
using (var fs = System.IO.File.Create(filePath))
{
Task.Run(async () =>
{
await fs.WriteAsync(memoryStream.ToArray());
}).Wait();
}
Подробнее здесь: https://stackoverflow.com/questions/781 ... ork-folder
Мобильная версия