PricingBlog

Getting ERROR when posting file "text/plain;charset=UTF-8" does not contain a valid boundary."

  • rythm0300-1200396790072086538

    Christian

    2 years ago

    Hello I have setup a 'file submit form', which takes in a files and uploads it to my server.
    The post request consists of the file in the body.
    When running the post call in Postman it works succesfully w/ no specified content-type. But doing the same thing in Toddle gives me the error on the first picture. "text/plain;charset=UTF-8" does not contain a valid boundary.",
    I have also tried to set the content type to multipart/form-data

    Thanks!

    (More up to date pictures in the comments.)
    1200396790327947334-image.png
    1200396790638313512-image.png
    1200396790889975919-image.png
  • rythm0300-1200422146875334696

    Christian

    2 years ago

    1200422146615283772-image.png
  • rythm0300-1200422403998748782

    Christian

    2 years ago

    So it looks like it the call does not contain a body, even though i'm sure that the "file" varaible i set, since I am printing it.
  • This is how I create the body of the post request.
    1200422481148780564-image.png
  • Tod-1200422862654292179

    Tod

    2 years ago

    Great energy @Christian! Your continuous contribution to the toddle Community just made you advance to Community Level 1!
  • rythm0300-1200422919495503902

    Christian

    2 years ago

    Updated components
    1200422918933463151-image.png
    1200422919277383770-image.png
  • rythm0300-1200423301051330731

    Christian

    2 years ago

    Set file method:
    1200423300845797466-image.png
  • rythm0300-1200424826112847882

    Christian

    2 years ago

    Post request
    1200424825898942464-image.png
    1200424825571790878-image.png
  • rythm0300-1200425277461905458

    Christian

    2 years ago

    Working post req. in postman
  • rythm0300-1200426417851211898

    Christian

    2 years ago

    1200426417649889380-image.png
  • erikbeus-1200431727840088094

    Erik Beuschau

    2 years ago

    Could you try to set "proxy" to false (you might need to scroll down in the api dialog)?
  • rythm0300-1200485804099776604

    Christian

    2 years ago

    Thank you @Erik Beuschau , I somehow managed not to scoll down enough too , to see your answer. Have a great weekend!!
  • erikbeus-1200509072559050762

    Erik Beuschau

    2 years ago

    So you got it working? 🤞
    Thank you, you too 🙌