/// <summary> /// Uploads a <paramref name="file"/> from a local file specified in the <paramref name="filePath"/> /// </summary> /// <typeparam name="T">The type of the instances in the table.</typeparam> /// <param name="table">The table instance that contains the record associated with the <see cref="MobileServiceFile"/>.</param> /// <param name="file">The <see cref="MobileServiceFile"/> instance.</param> /// <param name="filePath">The path of the file to be uploaded.</param> /// <returns>A <see cref="Task"/> that completes when the upload has finished.</returns> public async static Task UploadFileAsync <T>(this IMobileServiceTable <T> table, MobileServiceFile file, string filePath) { IMobileServiceFileDataSource dataSource = new PathMobileServiceFileDataSource(filePath); await table.UploadFileAsync(file, dataSource); }