Läs på engelska

Dela via


BrowserFileExtensions Class

Definition

Contains helper methods for IBrowserFile.

C#
public static class BrowserFileExtensions
Inheritance
BrowserFileExtensions

Methods

RequestImageFileAsync(IBrowserFile, String, Int32, Int32)

Attempts to convert the current image file to a new one of the specified file type and maximum file dimensions.

Caution: there is no guarantee that the file will be converted, or will even be a valid image file at all, either before or after conversion. The conversion is requested within the browser before it is transferred to .NET code, so the resulting data should be treated as untrusted.

Applies to

Produkt Versioner
ASP.NET Core 5.0, 6.0, 7.0, 8.0, 9.0