We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is an Upload API in this openApi spec which uses multipart/form-data to send the request. On using the stoplight demo project when I try to send a request through this API no fields are being attached in the request payload which can be clearly seen in the network tab under inspect panel of the browser. This is the link to the stoplight demo https://elements-demo.stoplight.io/?spec=https://raw.githubusercontent.com/Yashaswi-1998/OpenApi/main/Imagekit.yaml#/operations/upload-file
multipart/form-data
Users are not able to use the API even after entering correct details. The API errors out, confusing the users.
Currently the API errors out with below message. This is happening because fileName field is not getting attached in form data.
fileName
{ "message": "Your request is missing fileName parameter.", "help": "For support kindly contact us at [email protected] ." }
It should upload the file and give 201 status code.
NA
Authorization => Basic cHJpdmF0ZV9VUXZwU2tRVGRheGlYcXNaZStOaGd0by9iZ3c9Og== file* =>https://media.istockphoto.com/id/1127245421/photo/woman-hands-praying-for-blessing-from-god-on-sunset-background.webp?b=1&s=170667a&w=0&k=20&c=bPoh4FbWez1Za2_DfgYY2VlZ3F6RKtx9_OF8I5ZSpXU= fileName* => demoFileName
Authorization
Basic cHJpdmF0ZV9VUXZwU2tRVGRheGlYcXNaZStOaGd0by9iZ3c9Og==
file*
fileName*
demoFileName
Now after this if we will click on Send API Request it will throw below error
Send API Request
This error is occurring because when we check payload under network tab in inspect panel, it is empty
Prod
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There is an Upload API in this openApi spec which uses
multipart/form-data
to send the request. On using the stoplight demo project when I try to send a request through this API no fields are being attached in the request payload which can be clearly seen in the network tab under inspect panel of the browser.This is the link to the stoplight demo https://elements-demo.stoplight.io/?spec=https://raw.githubusercontent.com/Yashaswi-1998/OpenApi/main/Imagekit.yaml#/operations/upload-file
Context
Users are not able to use the API even after entering correct details. The API errors out, confusing the users.
Current Behavior
Currently the API errors out with below message. This is happening because
fileName
field is not getting attached in form data.Expected Behavior
It should upload the file and give 201 status code.
Possible Workaround/Solution
NA
Steps to Reproduce
Authorization
=>Basic cHJpdmF0ZV9VUXZwU2tRVGRheGlYcXNaZStOaGd0by9iZ3c9Og==
file*
=>https://media.istockphoto.com/id/1127245421/photo/woman-hands-praying-for-blessing-from-god-on-sunset-background.webp?b=1&s=170667a&w=0&k=20&c=bPoh4FbWez1Za2_DfgYY2VlZ3F6RKtx9_OF8I5ZSpXU=fileName*
=>demoFileName
Now after this if we will click on
Send API Request
it will throw below errorThis error is occurring because when we check payload under network tab in inspect panel, it is empty
Environment
Prod
The text was updated successfully, but these errors were encountered: