Skip to content

Transmitting a file through an API #449

Open
@kschuster1

Description

@kschuster1

The API I'm working with required form-data to pass the path to the file and a username.
I'm using this
Request.AddBodyParameter "Filedata", "c:\test.pdf"
Request.AddBodyParameter "userprofile_username", "myusername"

I THINK this is the correct way to pull together form-data (I don't see anything specific to that in the post.....
Is this the correct method to pass form-data??

My Request.body looks like this
{"Filedata":"c:\test.pdf","userprofile_username":"myusername"}

The path to the file now has \
That can't be correct?? - I don't thing the file will be found right

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions