Added automatic download mechanism
- Added tooltips to options - Updated privacy policy
This commit is contained in:
@ -115,14 +115,19 @@ export class UploadComponent {
|
||||
buildFileUrls(fileDetails: FileDetails) {
|
||||
const baseUrl = this.developmentStore.getBaseUrl();
|
||||
const fileId = fileDetails.fileId;
|
||||
const downloadUrl = `${baseUrl}download?fileId=${fileId}`;
|
||||
const deleteUrl = `${baseUrl}api/v1/deletefile?fileId=${fileId}`;
|
||||
const statusUrl = `${baseUrl}status?fileId=${fileId}`;
|
||||
let passwordUrlPart = '';
|
||||
if(fileDetails.passwordProtected) {
|
||||
passwordUrlPart = `&password=${fileDetails.password}`;
|
||||
}
|
||||
const downloadUrl = `${baseUrl}download?fileId=${fileId}${passwordUrlPart}`;
|
||||
const deleteUrl = `${baseUrl}api/v1/deletefile?fileId=${fileId}${passwordUrlPart}`;
|
||||
const statusUrl = `${baseUrl}status?fileId=${fileId}${passwordUrlPart}`;
|
||||
return {
|
||||
downloadUrl,
|
||||
statusUrl,
|
||||
deleteUrl,
|
||||
}; }
|
||||
};
|
||||
}
|
||||
|
||||
buildFormDataObject(): FormData {
|
||||
const formData = new FormData();
|
||||
|
Reference in New Issue
Block a user