diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-04-03 00:22:04 +0200 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-04-03 00:22:06 +0200 |
commit | c9ff8a08a06ef0f30ec4963aebfcc02293ca20c5 (patch) | |
tree | dc2899aff59d56b40dac81fabd90d863b1586331 /client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.ts | |
parent | b515c98c6b674ee5632f3f76ad4fe00e147d995e (diff) | |
download | PeerTube-c9ff8a08a06ef0f30ec4963aebfcc02293ca20c5.tar.gz PeerTube-c9ff8a08a06ef0f30ec4963aebfcc02293ca20c5.tar.zst PeerTube-c9ff8a08a06ef0f30ec4963aebfcc02293ca20c5.zip |
Support drag and drop for video upload and torrent file import
Diffstat (limited to 'client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.ts')
-rw-r--r-- | client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.ts b/client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.ts index e47624dd6..4d0b0b080 100644 --- a/client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.ts +++ b/client/src/app/videos/+video-edit/video-add-components/video-import-torrent.component.ts | |||
@@ -72,6 +72,11 @@ export class VideoImportTorrentComponent extends VideoSend implements OnInit, Ca | |||
72 | this.importVideo(torrentfile) | 72 | this.importVideo(torrentfile) |
73 | } | 73 | } |
74 | 74 | ||
75 | setTorrentFile (files: FileList) { | ||
76 | this.torrentfileInput.nativeElement.files = files | ||
77 | this.fileChange() | ||
78 | } | ||
79 | |||
75 | importVideo (torrentfile?: Blob) { | 80 | importVideo (torrentfile?: Blob) { |
76 | this.isImportingVideo = true | 81 | this.isImportingVideo = true |
77 | 82 | ||