docs
docs copied to clipboard
OpenAPI Spec: Issues with uploading files
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]'
@karanataryn is this fixed, I am still facing same error
@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
We're having the same issue. Bump.
same here
Hello, Any update. This issue is really bugging us.
Team mintlify,
What is stopping us to look into issue?
@tiffany-mintlify @katemintlify @mintlifydavid @hahnbeelee
Hi Team, Could you please provide an update on when this will be fixed? Thank you
Thanks for the fix @dino475 ! Single file uploads work great now, but arrays of files (using the files[] parameter) still don't work correctly. Could you address this case too? Thank you
Hey everyone, we're working on this and will follow up here shortly
Hi @dino475 , just following up on arrays of files (using the files[] parameter) still don't work correctly. Could you address this case too? Thank you
We’re on it - a PR is in the works and should be merged soon!
@dino475 Any updates on the PR mentioned on June 1? I suspect the issues mentioned in this thread are causing the "011000010111000001101001" strings to be added to our sample scripts.
@dino475 Hey, any update on this PR? Almost 3 months after your last comment and almost 6 after the expected shortly follow up. Thanks!
hey @Segfaultd we merged a fix 2 weeks ago but are you still running into issues?
hey @Segfaultd we merged a fix 2 weeks ago but are you still running into issues?
Hi, yes well the exact same issue as referenced in first place. When you upload a file, the generated payload is empty file={}
hey @Segfaultd we merged a fix 2 weeks ago but are you still running into issues?
Hello :-) Any news?
hey @Segfaultd we merged a fix 2 weeks ago but are you still running into issues?
Hi, yes well the exact same issue as referenced in first place. When you upload a file, the generated payload is empty
file={}
Hi @Segfaultd can you please share a link to where this is happening so we can reproduce and record the issue for our team?