Skip to content

mbenedettini/ts-rest-fastify-multipart-proof

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ts-rest fastify multipart validation proof

This request shouldn't go through since requiredField is not present:

$ curl -v -F file=@test1.txt  http://localhost:3000/test-multipart
*   Trying [::1]:3000...
* Connected to localhost (::1) port 3000
> POST /test-multipart HTTP/1.1
> Host: localhost:3000
> User-Agent: curl/8.4.0
> Accept: */*
> Content-Length: 320
> Content-Type: multipart/form-data; boundary=------------------------3q4U6WyuPkdGV5zlMcYwW8
>
* We are completely uploaded and fine
< HTTP/1.1 201 Created
< content-type: application/json; charset=utf-8
< content-length: 15
< Date: Wed, 01 May 2024 15:39:26 GMT
< Connection: keep-alive
< Keep-Alive: timeout=72
<
* Connection #0 to host localhost left intact
{"status":"OK"}%

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published