upload and decompress files, better error handeling and cleanup of temp dir on failures