Add Upload button for OpenAPI 2.0 file as Octet-Stream
Context I am using OpenAPI ver 2.0 I have API which consumesapplication/octet-stream(JavaInputStream) Issue In OpenAPI ver 2.0 I can only set input type asmultipart/form-data(link) to have upload button. When I have applied this solution for my swagger: <code> "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "parameters": [ { "in": "formData", "name": "messageFile", "description": "Description...", "required": true, "type": "file" } ] </code> I am getting following error:Unsupported Media Typeafter sending a file - itis normal due to my API wants octet-stream. Question Is it possible to have upload button using OpenAPI ver 2.0 andapplication/octet-streamlike: If no, then what will be better solution / workaround for this?Solved3.6KViews0likes3CommentsUpload an audio file
Hello, I would like to attach an audio file in a SOAP request. I would like to place this file at a specific location in the request but I can't. Here is the location in the request where I would like to drop the file: <v1:mediamessage> <xsd:codec> <xsd:codecID>audio/MPA;layer=3</xsd:codecID> </xsd:codec> <xsd:location>Here the message.mp3 file i want to upload</xsd:location> </v1:messageMedia> I don't have a server installed on my pc.(XXX is because i prefer hide the ip) If I do "attach" and select a file, I don't know where it will be placed in the request. It seems to me that once the file is uploaded, I should have something like this instead: <v1:messageMedia> <xsd:codec> <xsd:codecID>audio/MPA;layer=3</xsd:codecID> </xsd:codec> <xsd:location>cid:123564548786477</xsd:location> </v1:messageMedia> if I click on "attachment" and then select a file, when I select the drop-down list in the "part" column, the cid is not present either. i've tried this method: " To specify a MTOM attachment: Set theEnable MTOMrequest property totrue. Add a file to the Attachments tab as it was describedabove. In the Part column, select thecididentifier that your request body specifies " I hope you will understand my request thank you in advance for your help because I'm stuck here.871Views0likes1CommentProblems when downloading .api to BitBar files library
Hi, I'm having problems when uploading my test application (Android app .apk) to BitBar files library. (Mobile app live testing). Uploading new file seems to go ok, until the upload process ends, the file does not appear to files library. I already removed some old files, so there should be space for new one. Problem occurred today, earlier this week uploading has been working ok. Any suggestions how to proceed, thank you in advance! 🙂467Views0likes0Comments