Issue with Looping Through Archives: Only One File Visible, Unzipping Results in Singular File, and File Naming Problem via HTTP

Hello, I have a question regarding archives and zip files. I run the following loop and everything works and it uploads the file at the end.

However, I have the following problem when I want to look at the files I see only one and when I unzip the file I get only one file again although before it also says that there are three. Also I noticed that through http all fileil are named in files and I don’t know how to unname that.

Welcome to the Make community!

Please provide the output bundles of module [12] and [35] by running the scenario, then click the white speech bubble on the top-right the module, save the bundle contents in your text editor, and upload it here into this discussion thread:

Screenshot_2023-10-06_141025

This will allow others to better assist you. Thanks!

2 Likes

Hello thanks for the reply I have found the problem. It was because all the files were called “files”. I solved it by putting the bundle order position in front of it.

Now the only question I have is how to name each document in the zip individually (the renaming data was sent via Glide).

2 Likes

Instead of selecting the file, you can use the Map option so you can map the filename and data separately. Then, in the File name field, you can use the bundle number or some other variable in/as the filename.

3 Likes

Thank you for your assistance thus far! Your suggestion to use the Map option to map the filename and data separately has been incredibly helpful. It streamlines the process significantly.

I do have one more question, though: How can I ensure that the file name is retained for all files that are included in a zip file? I want to make sure that the association is not lost. Do you have any additional tips or recommendations for this?

I appreciate your continued support!

Best regards,

You can put them in separate folders (paths) in the zip file by prefixing them with the folder name followed by / then the file name.

In my screenshot above for my scenario I did that before the variable "Scenario ID`.

2 Likes

I’m sorry, but I’m new here and I have no specific idea on how to do that exactly. Could you provide more context or specific instructions?

I’ll include screenshots to provide a clearer picture.