Documentation for FileUpload API #1368
Replies: 3 comments 4 replies
-
It is actually
However I hope all those information helps you. |
Beta Was this translation helpful? Give feedback.
-
Hi @ardatan, const { name, stream } = arg.file;
const fileStream = stream();
const readable = Readable.from(fileStream); We are getting the following error: |
Beta Was this translation helpful? Give feedback.
-
Hi @ardatan,
Error with 2i: Issues with 2ii: Can you imagine what could be the issue? |
Beta Was this translation helpful? Give feedback.
-
Hi,
we migrated from Apollo Server.
Before we used with Apollo Server:
I found already that:
filename
is replaced byname
createReadStream
withstream
But it seems that
stream()
is not returning a readable stream, as we can't callstream().pipe(writeable)
as we did before.So we migrated some of our code to the following:
This is working fine, but anyway we have some other places where we make use of the
pipe
function.Here we are checking file size, image sizes and so on during the upload.
Is there a way to get from Yoga also a readable stream - in the same way as with Apollo Server?
Is there a place where all the possible fields of the
file
object are listed?Like:
name, stream(), ...
Best,
Johannes
Beta Was this translation helpful? Give feedback.
All reactions