public class FileUploader extends Object
| Constructor and Description |
|---|
FileUploader(AuthenticatedHTTPClient authenticatedHTTPClient,
com.google.gson.Gson gson,
Configuration configuration) |
public FileUploader(AuthenticatedHTTPClient authenticatedHTTPClient, com.google.gson.Gson gson, Configuration configuration)
public GetUploadUrlResponse getUploadUrl(String userId) throws IOException, UnauthorizedException, URISyntaxException
public ImageDTO uploadImage(String userId, File image, @Nullable UploadRequest uploadRequest) throws UnauthorizedException, IOException, URISyntaxException
public ImageDTO uploadImage(String userId, InputStream image, String mimeType, String fileName, @Nullable UploadRequest uploadRequest) throws UnauthorizedException, IOException, URISyntaxException
public AudioDTO uploadAudio(String userId, File audio, @Nullable UploadRequest uploadRequest) throws UnauthorizedException, IOException, URISyntaxException
public AudioDTO uploadAudio(String userId, InputStream audio, String mimeType, String fileName, @Nullable UploadRequest uploadRequest) throws UnauthorizedException, IOException, URISyntaxException
public VideoDTO uploadVideo(String userId, File video, @Nullable UploadRequest uploadRequest, @Nullable EncodingOptions encodingOptions) throws UnauthorizedException, IOException, URISyntaxException
public VideoDTO uploadVideo(String userId, InputStream video, String mimeType, String fileName, @Nullable UploadRequest uploadRequest, @Nullable EncodingOptions encodingOptions) throws UnauthorizedException, IOException, URISyntaxException
public DocumentDTO uploadDocument(String userId, File document, @Nullable UploadRequest uploadRequest) throws UnauthorizedException, IOException, URISyntaxException
public DocumentDTO uploadDocument(String userId, InputStream document, String mimeType, String fileName, @Nullable UploadRequest uploadRequest) throws UnauthorizedException, IOException, URISyntaxException
public FileDTO importFile(String userId, ImportFileRequest importFileRequest) throws UnauthorizedException, IOException, URISyntaxException
Copyright © 2016 wix.com. All rights reserved.