Added automatic download mechanism

- Added tooltips to options
- Updated privacy policy
This commit is contained in:
2024-02-18 14:38:34 +01:00
parent 78f32c4f64
commit d9e621165d
4 changed files with 47 additions and 23 deletions

View File

@ -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();