New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REST API - VOD Post Create #2364
Comments
Hi, you need to add a stream name to the API URL. example usage: Regards. |
Yeah rest api is case sensitive about checking the extension of the upload.
and I've changed it to
It will be available likely in next snapshot. Community snapshots are deployed here automatically Enterprise snapshots are deployed in a private area. |
I was missing the name variable to the end of the post curl -L -X POST 'http://localhost:5080/WebRTCAppEE/rest/v2/vods/create?name=example.mp4' -H 'Content-Type: multipart/form-data' -F 'file=@example.mp4' Thanks for the help |
Short description
testing the VOD of the application. I downloaded a mp4 to the server. When I run the following command I get a response telling me that it "notMp4File". I have tried this from a remote computer as well just now and same issue.
Environment
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu218.04)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu218.04, mixed mode, sharing)
Steps to reproduce
Expected behavior
Upload file to host and index in VOD portion of the database.
Actual behavior
{"success":false,"message":"notMp4File","dataId":null,"errorId":0}
Logs
Place logs on pastebin or elsewhere and put links here
Join Google Group and be a part of Ant Media Server Community.
The text was updated successfully, but these errors were encountered: