fixex port issue when uploading files