I have a list of files that I want to upload to a system. I need some help to figure out how to create a new List with each set of matching file name so that I can do a mass upload, and then if one of the files fails during a batch upload then I want to add it to a separate list to perform individual upload later.
I have the following files in a local folder:
1.1.1-P01.txt 1.1.1-P02.docx 1.1.2-P01.txt 5.1.1-P01.txt 5.1.1-P02.txt 5.1.1-P03.pdf
New list: 1.1.1-P01.txt 1.1.1-P02.docx
New list: 1.1.2-P01.txt
New list: 5.1.1-P01.txt 5.1.1-P02.txt 5.1.1-P03.pdf
Now I have three batch to upload, but if let’s say 1.1.1-P01.txt and 5.1.1-P01.txt failed during mass upload then I want to create a separate list to store the files for individual upload (The reason for this is that if one of the files failed during a mass upload, the entire batch will stop).
My list for individual upload would look like this:
New list: 1.1.1-P01.txt 1.1.1-P02.docx 5.1.1-P01.txt 5.1.1-P02.txt 5.1.1-P03.pdf
Finally, I will perform individual upload one by one from that collection.
In this example I only have three batch. But I could have more too.