public Task <UploadRequest <VideoUploadResponse> > UploadVideoAsync(VideoSaveResult server, string file) { FileChecker.Check(file, new FileCheckerOptions { Extensions = Extensions }); return(HttpUploader.UploadAsync <VideoUploadResponse>(server.UploadUrl, new[] { file }, "video_file")); }
public Task <UploadRequest <DocsDocUploadResponse> > UploadDocAsync(DocsGetUploadServerResponse server, string file) { FileChecker.Check(file, new FileCheckerOptions { FileSizeLimit = FileSizeLimit }); return(HttpUploader.UploadAsync <DocsDocUploadResponse>(server.UploadUrl, new[] { file }, "file")); }
public Task <UploadRequest <PhotosMarketUploadResponse> > UploadMarketAlbumPhotoAsync(PhotosGetMarketAlbumUploadServerResponse server, string file) { FileChecker.Check(file, fileCheckerOptions); return(HttpUploader.UploadAsync <PhotosMarketUploadResponse>(server.UploadUrl, new[] { file }, "file")); }
public Task <UploadRequest <PhotosMessageUploadResponse> > UploadMessagePhotoAsync(PhotosPhotoUpload server, string file) { FileChecker.Check(file, fileCheckerOptions); return(HttpUploader.UploadAsync <PhotosMessageUploadResponse>(server.UploadUrl, new[] { file }, "photo")); }
public Task <UploadRequest <PhotosOwnerUploadResponse> > UploadOwnerPhotoAsync(PhotosGetOwnerPhotoUploadServerResponse server, string file) { FileChecker.Check(file, fileCheckerOptions); return(HttpUploader.UploadAsync <PhotosOwnerUploadResponse>(server.UploadUrl, new[] { file }, "photo")); }
public Task <UploadRequest <PhotosWallUploadResponse> > UploadWallPhotosAsync(PhotosPhotoUpload server, IEnumerable <string> files) { FileChecker.Check(files, fileCheckerOptions); return(HttpUploader.UploadAsync <PhotosWallUploadResponse>(server.UploadUrl, files, "photo")); }