-
Notifications
You must be signed in to change notification settings - Fork 161
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
Comments
@karanataryn is this fixed, I am still facing same error |
@mayank-ekacare I don't think so. |
@fmerian are there any updates on this? i run into the same issue :) |
Bump on this. |
Bump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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]'
The text was updated successfully, but these errors were encountered: