Archive improvements

Began UI for viewing/modifying archives
This commit is contained in:
Tzahi12345
2023-03-26 01:01:36 -04:00
parent a2b5484b75
commit 62ad4226d9
17 changed files with 369 additions and 15 deletions

View File

@@ -31,11 +31,8 @@ export class CookiesUploaderDialogComponent implements OnInit {
// Is it a file?
if (droppedFile.fileEntry.isFile) {
const fileEntry = droppedFile.fileEntry as FileSystemFileEntry;
fileEntry.file((file: File) => {
// You could upload it like this:
const formData = new FormData()
formData.append('cookies', file, droppedFile.relativePath);
this.postsService.uploadCookiesFile(formData).subscribe(res => {
fileEntry.file((file: File) => {
this.postsService.uploadCookiesFile(file, droppedFile.relativePath).subscribe(res => {
this.uploading = false;
if (res['success']) {
this.uploaded = true;