|
@@ -106,11 +106,8 @@ class File {
|
|
}
|
|
}
|
|
|
|
|
|
String getDownloadUrl() {
|
|
String getDownloadUrl() {
|
|
- final api = isEncrypted ? "encrypted-files" : "files";
|
|
|
|
return Configuration.instance.getHttpEndpoint() +
|
|
return Configuration.instance.getHttpEndpoint() +
|
|
- "/" +
|
|
|
|
- api +
|
|
|
|
- "/download/" +
|
|
|
|
|
|
+ "/files/download/" +
|
|
uploadedFileID.toString() +
|
|
uploadedFileID.toString() +
|
|
"?token=" +
|
|
"?token=" +
|
|
Configuration.instance.getToken();
|
|
Configuration.instance.getToken();
|
|
@@ -127,11 +124,8 @@ class File {
|
|
}
|
|
}
|
|
|
|
|
|
String getThumbnailUrl() {
|
|
String getThumbnailUrl() {
|
|
- final api = isEncrypted ? "encrypted-files" : "files";
|
|
|
|
return Configuration.instance.getHttpEndpoint() +
|
|
return Configuration.instance.getHttpEndpoint() +
|
|
- "/" +
|
|
|
|
- api +
|
|
|
|
- "/preview/" +
|
|
|
|
|
|
+ "/files/preview/" +
|
|
uploadedFileID.toString() +
|
|
uploadedFileID.toString() +
|
|
"?token=" +
|
|
"?token=" +
|
|
Configuration.instance.getToken();
|
|
Configuration.instance.getToken();
|