Skip to content
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

Not able to upload VoD files using REST API #6331

Closed
armanism24 opened this issue May 15, 2024 · 1 comment
Closed

Not able to upload VoD files using REST API #6331

armanism24 opened this issue May 15, 2024 · 1 comment

Comments

@armanism24
Copy link

Short description

I wanted to add files via REST API and the video file is already on the server on this path "/home/user/videos/output_with_audio.mp4" but it is giving me an error HTTP Status 405 – Method Not Allowed

curl -k -X POST "http://localhost:5080/LiveApp/rest/v2/vods"
-H "accept: application/json"
-H "Content-Type: multipart/form-data"
-F "file=@/home/user/videos/output_with_audio.mp4"

I have even tried cURL Command with Authentication

curl -u your_username:your_password -X POST "http://localhost:5080/LiveApp/rest/v2/vods"
-H "accept: application/json"
-H "Content-Type: multipart/form-data"
-F "file=@/home/user/videos/output_with_audio.mp4"

But this is still not working.

Environment

  • Operating system and version: Ubuntu 22.04.4 LTS
  • Java version: openjdk version "17.0.10"
  • Ant Media Server version: Community Edition 2.9.0 20240405_1758
  • Browser name and version: Chrome Version 124.0.6367.158

Logs

Check the Logs

@yashtandon113
Copy link
Contributor

@armanism24
My colleague, @lastpeony answered to your question on the below discussion.
https://github.com/orgs/ant-media/discussions/6332

Please leave a comment there if you have any questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants