fix upload_file
avoid download of segments folder