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

custom upload server is not working (got solution, but docs is incomplete) #2154

Closed
KunalSin9h opened this issue Feb 17, 2025 · 1 comment · May be fixed by #2158
Closed

custom upload server is not working (got solution, but docs is incomplete) #2154

KunalSin9h opened this issue Feb 17, 2025 · 1 comment · May be fixed by #2158

Comments

@KunalSin9h
Copy link

KunalSin9h commented Feb 17, 2025

FIXED NOW, SEE COMMENTS:

I have created an upload server where my model will upload the files (which is a wav).

I am following https://cog.run/http/#file-uploads

My request:

Image

Response: (which is error)

Image

It seems Cog can access /upload/audio.wav (404), but it have not HITed /upload (PUT).

My PUT /upload handler in rust.

Image

open source code:

https://github.com/blogspeakai/uploadservice

@KunalSin9h
Copy link
Author

KunalSin9h commented Feb 18, 2025

its working now, the docs is incomplete. Cog is hitting PUT /upload/{file_name} not just PUT /upload.

the documentation says it, it just PUT /upload

Image

but when i saw code, its PUT /upload/{filename}

Image

@KunalSin9h KunalSin9h changed the title custom upload server is not working custom upload server is not working (got solution, but docs is incomplete) Feb 18, 2025
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

Successfully merging a pull request may close this issue.

1 participant