Add file as a primitive to support file uploads
The definition would need to support multipart form uploads with files and form parameters.
We have an endpoint where we upload an image, and another endpoint where we retrieve an image. Can I do that with fern? How do I define that?
https://fern-api.slack.com/archives/C03Q0NFCE3E/p1669922093756529
this is now supported
Is this supported in all languages or just in the Java SDK?
Hey Nicholas -- it is supported in all SDK languages (you might have to upgrade your generator to the latest though). Which one are you using?
We're using the FastAPI one:
- name: fernapi/fern-fastapi-server
version: 0.3.14
I saw https://github.com/fern-api/fern-python/pull/321 is still open, so I was wondering if maybe not all of the languages support it
Yup, FastAPI doesn't support this yet unfortunately.
closing in favor of https://github.com/fern-api/fern/issues/5270 which is more specific for FastAPI server codegen