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
The contentFormatters method is in question here as it is called within the request and transforms Object to FormData but not considering property to be an Array:
This discussion was converted from issue #776 on July 01, 2024 13:07.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
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
-
Having a use case where we need to upload multiple files at the same time, seems like the underlying logic is not considering arrays.
Consider following scenario when
data
is something like this:and having
uploadPost
method like this:The
contentFormatters
method is in question here as it is called within therequest
and transformsObject
toFormData
but not consideringproperty
to be anArray
:Are we doing something wrong or multi-file upload is not supported?
Beta Was this translation helpful? Give feedback.
All reactions