You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where the MIME type passed by the client side happens to be application/pdf in this case. But this example doesn't show how to read the MIME type on the server side (or the file name test.pdf for that matter). Are these thrown away without any way to retrieve them, or is there a way for the server to retrieve them? It is unusual that the example shows how to pass them in from the client side but not how to read them from the server side.
My use case involves wanting to convert the format of the file from any arbitrary input format to some internal standard format before further processing, and for that I need to use information about the format of the given input file.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The documentation for file inputs gives this example:
With this request
Where the MIME type passed by the client side happens to be
application/pdf
in this case. But this example doesn't show how to read the MIME type on the server side (or the file nametest.pdf
for that matter). Are these thrown away without any way to retrieve them, or is there a way for the server to retrieve them? It is unusual that the example shows how to pass them in from the client side but not how to read them from the server side.My use case involves wanting to convert the format of the file from any arbitrary input format to some internal standard format before further processing, and for that I need to use information about the format of the given input file.
Beta Was this translation helpful? Give feedback.
All reactions