Merge pull request #4710 from GabrielInTheWorld/util-fixes

Hotfix: MediaUpload went wrong...
This commit is contained in:
Finn Stutzenstein 2019-05-14 14:24:24 +02:00 committed by GitHub
commit 8403b4622d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@ export class MediafileRepositoryService extends BaseRepository<ViewMediafile, Me
*/ */
public async uploadFile(file: FormData): Promise<Identifiable> { public async uploadFile(file: FormData): Promise<Identifiable> {
const emptyHeader = new HttpHeaders(); const emptyHeader = new HttpHeaders();
return this.httpService.post<Identifiable>('`/rest/mediafiles/mediafile/', file, {}, emptyHeader); return this.httpService.post<Identifiable>('/rest/mediafiles/mediafile/', file, {}, emptyHeader);
} }
/** /**