aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-09-07 21:46:44 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-09-07 21:46:44 +0200
commite95561cdf195d2926e1856ed285c2b86960bc86f (patch)
tree7f25c340e307fcbb13f77769b64e75603520ecc6 /client/src
parent0cee28c1b251b00067681286d136ca947cf34808 (diff)
downloadPeerTube-e95561cdf195d2926e1856ed285c2b86960bc86f.tar.gz
PeerTube-e95561cdf195d2926e1856ed285c2b86960bc86f.tar.zst
PeerTube-e95561cdf195d2926e1856ed285c2b86960bc86f.zip
Upload a video to /videos/upload
This is an action, not a REST endpoint
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/videos/video-edit/video-add.component.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/videos/video-edit/video-add.component.ts b/client/src/app/videos/video-edit/video-add.component.ts
index 768b6fbcd..42b11cd08 100644
--- a/client/src/app/videos/video-edit/video-add.component.ts
+++ b/client/src/app/videos/video-edit/video-add.component.ts
@@ -95,7 +95,7 @@ export class VideoAddComponent extends FormReactive implements OnInit {
95 this.uploader = new FileUploader({ 95 this.uploader = new FileUploader({
96 authToken: this.authService.getRequestHeaderValue(), 96 authToken: this.authService.getRequestHeaderValue(),
97 queueLimit: 1, 97 queueLimit: 1,
98 url: API_URL + '/api/v1/videos', 98 url: API_URL + '/api/v1/videos/upload',
99 removeAfterUpload: true 99 removeAfterUpload: true
100 }) 100 })
101 101
@@ -166,7 +166,7 @@ export class VideoAddComponent extends FormReactive implements OnInit {
166 } 166 }
167 167
168 item.onError = (response: string, status: number) => { 168 item.onError = (response: string, status: number) => {
169 // We need to handle manually these cases beceause we use the FileUpload component 169 // We need to handle manually these cases because we use the FileUpload component
170 if (status === 400) { 170 if (status === 400) {
171 this.error = response 171 this.error = response
172 } else if (status === 401) { 172 } else if (status === 401) {
@@ -181,7 +181,7 @@ export class VideoAddComponent extends FormReactive implements OnInit {
181 } else if (status === 403) { 181 } else if (status === 403) {
182 this.error = 'Your video quota is reached, you can\'t upload this video.' 182 this.error = 'Your video quota is reached, you can\'t upload this video.'
183 } else { 183 } else {
184 this.error = 'Unknow error' 184 this.error = 'Unknown error'
185 console.error(this.error) 185 console.error(this.error)
186 } 186 }
187 } 187 }