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

OpenAPI Spec: Issues with uploading files #345

Open
karanataryn opened this issue Nov 12, 2024 · 2 comments
Open

OpenAPI Spec: Issues with uploading files #345

karanataryn opened this issue Nov 12, 2024 · 2 comments

Comments

@karanataryn
Copy link

karanataryn commented Nov 12, 2024

The Mintlify Web UI does not correctly upload files in the API request, passing it as a string instead of a file object. This leads to errors as seen below:
{"detail":[{"type":"value_error","loc":["body","file"],"msg":"Value error, Expected UploadFile, received: <class 'str'>","input":"[object Object]","ctx":{"error":{}}}]}

The construction of the cURL object is incorrect, as seen below:
curl --request POST \ --url https://url \ --header 'Authorization: Bearer REDACTED' \ --header 'Content-Type: multipart/form-data' \ --form 'file={}'

which should instead contain --form '[email protected]'

@mayank-ekacare
Copy link

@karanataryn is this fixed, I am still facing same error

@karanataryn
Copy link
Author

karanataryn commented Nov 27, 2024

@karanataryn is this fixed, I am still facing same error

@mayank-ekacare I don't think so.

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