directory in upload method