Skip to content

On uploading a csv file using requests-scala, I am getting error as File attachment not found. #144

@swapgupt

Description

@swapgupt

Discussed in #143

Originally posted by swapgupt October 10, 2023
Below is my code snippet. Please let me know if I am doing anything wrong.

val multipartBody = MultiPart(MultiItem("demo", new File(filePath)))

val response: Try[requests.Response] = Try(requests.post(
  url,
  data = multipartBody,
  headers = headers
))

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