aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/videos')
-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 }