/// <summary> /// Creates a file with the given content and type and returns information about it. /// </summary> public static BrowserFile CreateFile(Context ctx, string data, string name, string contentType) { return(GenericHelper.CallJs <BrowserFile>(ctx, JsResource.createFile, data, name, contentType)); }
/// <summary> /// Creates an URL object from a file specified by id and returns the URL. /// </summary> public static string CreateUrlObject(Context ctx, int id) { return(GenericHelper.CallJs <string>(ctx, JsResource.createUrlObject, id)); }