Forum Discussion

Gitanjali's avatar
Gitanjali
New Contributor II
2 years ago
Solved

Send multiple files from file writer snap to http client snap for a POST rest api call.

Send multiple files from multiple file writer snaps to http client snap for a POST rest api call using multipart/form-data.

The files generated by file writer snaps have timestamp in their names which will vary for each run. These files are being written to sldb. I want to pick these files from sldb and pass to http client post for api call. 

If I use multipart type as files and try to pass an expression to read files from sldb path, it does not work. I have tried with type text as well. However if I select type as text and then directly select value from sldb instead of expression it works. But I can't predict the filename due to timestamp in filenames. 

How to achieve that? 

2 Replies