Web Api Upload File|Upload File To Azure Storage Account

  Рет қаралды 9,070

AzureTeach•Net

AzureTeach•Net

Күн бұрын

Пікірлер: 7
@shehzadamjad2606
@shehzadamjad2606 2 жыл бұрын
Thumbs up for your effort
@azureteachnet
@azureteachnet 2 жыл бұрын
Please subscribe to the channel, if you have not subscribed yet. There are more in the channel and more to come in future :) Thank you
@HiểnLê-l7b
@HiểnLê-l7b Жыл бұрын
thank you
@azureteachnet
@azureteachnet Жыл бұрын
Thanks for the feedback. Please subscribe to the channel if you have not subscribed yet. Thanks
@yagizakyz
@yagizakyz 2 жыл бұрын
Hi, first of all thanks for this video. I want image/jpeg to appear as file type. Please help me. The files are of type application/octet-stream in Azure as you did.
@ashtonandrews7042
@ashtonandrews7042 2 жыл бұрын
Great Demo , however on my side the uplaoded files where not pulling through so I had to change my method a little bit to look as follows : [HttpPost("[action]")] public async Task UploadFilesBlobToStorage(IList? files) { BlobContainerClient blobContainerClient = new BlobContainerClient(connString, containerName); var requestFiles = Request.Form.Files; foreach (IFormFile file in requestFiles) { using (var stream = new MemoryStream()) { file.CopyToAsync(stream); stream.Position = 0; await blobContainerClient.UploadBlobAsync(file.FileName, stream); } } return Ok("Files Uplaod Successfully."); }
@azureteachnet
@azureteachnet 2 жыл бұрын
Thanks. So did you make the IList nullable (added question mark (?))
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Web Api Download Multiple Files
10:35
AzureTeach•Net
Рет қаралды 3,7 М.
Azure Web Jobs Complete Reference|Webjobs Tutorial
7:36
AzureTeach•Net
Рет қаралды 5 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН