Browse Source

Update AbpFormFileExtensions.cs

pull/3116/head
maliming 7 years ago
committed by GitHub
parent
commit
2c9798298a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      framework/src/Volo.Abp.AspNetCore.Mvc/Microsoft/AspNetCore/Http/AbpFormFileExtensions.cs

6
framework/src/Volo.Abp.AspNetCore.Mvc/Microsoft/AspNetCore/Http/AbpFormFileExtensions.cs

@ -15,8 +15,10 @@ namespace Microsoft.AspNetCore.Http
public static async Task<byte[]> GetAllBytesAsync(this IFormFile file)
{
using var stream = file.OpenReadStream();
return await stream.GetAllBytesAsync();
using (var stream = file.OpenReadStream())
{
return await stream.GetAllBytesAsync();
}
}
}
}

Loading…
Cancel
Save