-
-
Notifications
You must be signed in to change notification settings - Fork 128
Open
Labels
bugSomething isn't workingSomething isn't workingupstreamIssue caused by upstream dependency or external repositoryIssue caused by upstream dependency or external repository
Description
Environment
orpc@1.13.5
Reproduction
Clone the following fork https://github.com/lexer21/orpc and run the NestJS example app (playgrounds/nest/) afterwards go to the Scalar client, to the upload planet endpoint (http://localhost:3000/#tag/planets/POST/upload-planet) and under request body set it to binary and select a file. Send the test the request. On the backend the request validates succesfully, but the data returned from the array buffer is not the selected file but just the plain empty object {}. The name of the contract is uploadPlanet, the same happens also if i set inputStructure to detailed.
Describe the bug
Client should send the binary file, but instead just sends the a empty object when using z.file() for input
Additional context
No response
Logs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingupstreamIssue caused by upstream dependency or external repositoryIssue caused by upstream dependency or external repository
