Changed upload command to use truncate to split the folder array up