BrowserFileExtensions Class

Definition

Contains helper methods for IBrowserFile.

public ref class BrowserFileExtensions abstract sealed
public static class BrowserFileExtensions
type BrowserFileExtensions = class
Public Module 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