typeapi icon indicating copy to clipboard operation
typeapi copied to clipboard

Handle upload/download raw files

Open chriskapp opened this issue 2 years ago • 0 comments

Currently our SDK can only work with JSON payloads. We should also add support for file up/download. This means for uploads our client SDK needs to send an multipart/form-data request to the endpoint. For downloads we simply need to return the raw body content without trying to convert the body into a specific object. For file up/download we are not able to describe the body payload so we need some kind of dummy schema which tells the user that this is a raw file.

chriskapp avatar May 13 '23 10:05 chriskapp