Allow port 65535
Port 65535 is a valid port among the tor code base. In fact, in_port_t type will guarantee a valid port number. The only special value is "0", so drop the 65535 check completely.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information