Note: The pseudo-elements generated by ::before and ::after are contained by the element's formatting box, and thus don't apply to replaced elements such as img, or to br elements.
Accept a single file with the name fieldname. The single file will be stored in req.file.
single file with the name fieldname
input(type="file" name="img" required)
single('filedata')
name="img"
::1/128 — The loopback address is a unicast localhost address (corresponding to 127.0.0.1/8 in IPv4).
class UserDto {
name: string;
password: string;
}
@Post()
createUser(user: UserDto) {}