Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
swapgupt opened this issue Oct 10, 2023 Discussed in #143 · 0 comments

Comments

@swapgupt
Copy link

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
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant