public static class HttpsFileUploader.UploadFileSpec extends Object
| Constructor and Description |
|---|
UploadFileSpec(File file)
Constructs a file upload specification.
|
UploadFileSpec(File file,
String hintFilename)
Constructs a file upload specification.
|
UploadFileSpec(File file,
String hintFilename,
String mimeType)
Constructs a file upload specification.
|
| Modifier and Type | Method and Description |
|---|---|
File |
getFile() |
String |
getHintFilename() |
String |
getMimeType() |
public UploadFileSpec(File file)
hintFilename will be derived from
file argument.
mimeType will be guessed from
file argument using URLConnection.guessContentTypeFromName(java.lang.String).
file - file to upload.public UploadFileSpec(File file, String hintFilename)
hintFilename will be derived from
file argument.
file - file to upload.hintFilename - hint given to the server about what filename to use for the file.public UploadFileSpec(File file, String hintFilename, String mimeType)
file - file to upload.hintFilename - hint given to the server about what filename to use for the file.mimeType - MIME type for the file, e.g. application/zip.
See Wikipedia
for more information.Copyright © 2015 Addicticks. All rights reserved.