In this line of code zip.file(file-${index}.csv, content), is it possible to print the name of the above files?
I mean, I don’t want it to print like this file-0.csv,file-1.csv,file-2.csv in files.zip but my files.zip should contain
Hey @m3g4p0p, Sorry to tag you again here. I was wondering if you could share your thoughts on this requirement which I mentioned in this thread below (it may require to modify your solution that you mentioned above). Thanks again!
IDK you’ve already been given a straightforward solution to your problem… not sure what I could add here other than doing the coding for you. Maybe try asking a more specific question what exactly you didn’t understand, or where your implementation didn’t work as expected. ;-)
Like, how do I duplicate the array in this scenario with different file names and then how would I go about adding the following things if I am not using map :
Instead, you can just duplicate the array of file names, or keep the original array in a dedicated variable for that matter (IRL it’s presumably not hard-coded anyway but getting passed in from somewhere). You can then map the original array to fetch requests as before, and later look up the file names corresponding to each response by their indices.