Use iterator for files upload