finished single file upload mode and testing