[DEBUG] correct series ID

This commit is contained in:
Edouard DUPIN 2022-04-08 21:45:43 +02:00
parent 15c3b5f71e
commit 4c45f403a3
2 changed files with 4 additions and 3 deletions

View File

@ -266,6 +266,7 @@ public class VideoResource {
public Response uploadFile(@FormDataParam("fileName") String fileName,
@FormDataParam("universe") String universe,
@FormDataParam("series") String series,
//@FormDataParam("seriesId") String seriesId, Not used ...
@FormDataParam("season") String season,
@FormDataParam("episode") String episode,
@FormDataParam("title") String title,

View File

@ -64,14 +64,14 @@ export class VideoService {
typeId?:number,
progress:any = null) {
const formData = new FormData();
formData.append('file_name', file.name);
formData.append('fileName', file.name);
// set the file at hte begining it will permit to abort the transmission
formData.append('file', file?? null);
formData.append('universe', universe?? null);
if(seriesId !== null) {
formData.append('series', seriesId.toString());
formData.append('seriesId', seriesId.toString());
} else {
formData.append('series', null);
formData.append('seriesId', null);
}
formData.append('series', series?? null);
if(season !== null) {