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

Add the ability to send files that vary per CSV row #15

Merged
merged 5 commits into from
Jun 12, 2024

Conversation

jreyesr
Copy link
Owner

@jreyesr jreyesr commented Jun 12, 2024

This PR adds the ability to send varying files, by providing the file paths in a column in the CSV file.

For example, consider this normal request, which takes two fields in a multipart/form-data request. One text field takes the title of the new file, while another file field takes the actual file. You can imagine this being Google Drive or Dropbox or other similar system that has an endpoint where files can be submitted:

image

This PR adds a new template tag, in addition to the Batch tag that already exists, that can be configured to read from a column in a CSV that is assumed to contain file paths. Any fields that contain this new tag will be modified so the actual file pointed to by the tag is sent.

image

image

image

Then, the request can be sent using the Batch Requests dialog, as normal. Here, because of the tag's configuration, the file path will be read from the fname column on the CSV:

image

image

@jreyesr jreyesr added the enhancement New feature or request label Jun 12, 2024
@jreyesr jreyesr merged commit 0e57089 into master Jun 12, 2024
1 check passed
@jreyesr jreyesr deleted the feat/batch-files branch June 12, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant