uploads are nearly identical (except for filenames) to existing perl scripts