/// <summary> /// Remote upload file /// </summary> /// <param name="remoteOption">Remote options</param> /// <param name="fileOption">File option</param> /// <param name="fileBytes">File bytes</param> /// <param name="parameters">Parameters</param> /// <returns>Return upload result</returns> public static async Task <UploadResult> RemoteUploadAsync(RemoteServerOptions remoteOption, UploadFile fileOption, byte[] fileBytes, object parameters = null) { return(await RemoteUploadAsync(remoteOption, fileOption, fileBytes, parameters).ConfigureAwait(false)); }
/// <summary> /// Remote upload file /// </summary> /// <param name="remoteOption">Remote option</param> /// <param name="fileOptions">File options</param> /// <param name="files">Upload files</param> /// <param name="parameters">Parameters</param> /// <returns>Return upload result</returns> public static async Task <UploadResult> RemoteUploadAsync(RemoteServerOptions remoteOption, List <UploadFile> fileOptions, Dictionary <string, byte[]> files, Dictionary <string, string> parameters = null) { var result = await UploadManager.RemoteUploadAsync(remoteOption, fileOptions, files, parameters).ConfigureAwait(false); return(HandleUploadResult(result)); }