mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-22 12:40:56 +03:00
Archive improvements
Began UI for viewing/modifying archives
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user