[Sharing is learning] [Get rewards] Join Us Now to Become Katalon Champions. Learn more
Nikhil
Katalon Apprentice
05/07/2018

Not able to upload files in rest api using katalon

Hello Support,

I have the latest version of Katalon studio (5.4) and with this release katalon has stated supporting file upload, but this feature does not work for me.

When I try to upload a document I am getting an error as 

org.jvnet.mimepull.MIMEParsingException: Missing start boundary  at org.jvnet.mimepull.MIMEParser.skipPreamble(MIMEParser.java:318)
        at org.jvnet.mimepull.MIMEParser.access$300(MIMEParser.java:68)
        at org.jvnet.mimepull.MIMEParser$MIMEEventIterator.next(MIMEParser.java:154)
        at org.jvnet.mimepull.MIMEParser$MIMEEventIterator.next(MIMEParser.java:132)
        at org.jvnet.mimepull.MIMEMessage.makeProgress(MIMEMessage.java:228)
        at org.jvnet.mimepull.MIMEMessage.parseAll(MIMEMessage.java:189)
        at org.jvnet.mimepull.MIMEMessage.getAttachments(MIMEMessage.java:115)
        at org.glassfish.jersey.media.multipart.internal.MultiPartReaderClientSide.getMimeParts(MultiPartReaderClientSide.java:272)

Can you please help me in resolving this issue
Upvote
Quote

Comments

  • Trong Bui
    Katalon Moderator
    05/09/2018
    Nikhil,

    Could you provide more information on the file and the request you were sending? Some screenshot of the case will also help.
    Upvote
    Quote
  • Nikhil
    Katalon Apprentice
    06/09/2018
    Hi Trong,

    Sorry for replying  late below is the curl which I was trying through katalon:
    curl -X POST \
      -H 'Cache-Control: no-cache' \
      -H 'tenant-id: <Tenant-ID>' \
      -H 'user-id: UID' \
      -F 'files=@D:\Katalon_Upload\2.PDF' \
      -F 'metadata={
    "loanInfo":{
    "primaryBusinessKey": "NikhilR505",
    "loanNumber": "NikhilR505",
    "loanTypeId": "30YEAR",
    "applicationDate": "2018-04-28T00:00:00.000Z",
    "metaData": {
    "primaryFirstName": "Nikhil",
    "primaryLastName": "Indurkar"
    }
    }
    }'
    Upvote
    Quote
  • Nikhil
    Katalon Apprentice
    06/09/2018
    I used the object repository to configure this curl and was trying to send a pdf file
    Upvote
    Quote
  • Nikhil
    Katalon Apprentice
    06/09/2018

    Upvote
    Quote
  • marco tulio zahn
    Katalon Apprentice
    07/11/2018
    Im having the same problem. I must say it ABSOLUTELY SUCKS that katalon doen not show the outgoing request. This makes it extremely dificult to figure out what is wrong with the request. 

    Did u manage to get this to work? 
    thx
    Upvote
    Quote
Sign In or Register to comment.