batocera-linux/batocera-emulationstation

Can not upload mp4 video via HttpApi

jsm174 opened this issue · 2 comments

jsm174 commented

According to the docs, it looks like we should be able to upload a video via the HttpApi:

POST /systems/{systemName}/games/{gameId}/media/{mediaType} -> body must contain the file bytes to save. Content-type must be valid.

Whenever I try to upload a video, I get 404 media not found. I'm setting the content type to 'video/mp4'.

POST http://192.168.1.170:1234/systems/vpinball/games/53537ca15aabd46fdfbe26d9c6d3de33/media/video

Screenshot 2023-11-05 at 7 02 39 PM

I have no issues uploading images using the same method

POST http://192.168.1.170:1234/systems/vpinball/games/53537ca15aabd46fdfbe26d9c6d3de33/media/image

Screenshot 2023-11-05 at 7 01 16 PM

You're right.
Fixed there #1573

jsm174 commented

Thanks for getting this done so fast! I tested this successfully!