-
-
Notifications
You must be signed in to change notification settings - Fork 203
Does the API support multipart/form-data? #30
Comments
It doesn't support |
Question 2: Why not? Q 3: Can the API support |
No reason at all, we haven't implemented yet.
Yes it can support it. Probably the only drawback is that we can't sent user-defined information about this file, such as file title, description. |
If we include fields in the same form with the |
The file data uploaded will replace the field containing the user-defined (if any) title, description etc. Example: Currently we can do this: {
"title": "new article",
"header_image": {
"title": "new article header image",
"description": "a happy team",
"data": "<base-64-data>"
}
} We send user-specific information such as On the other hand when we use multipart the data for
The header section has the binary content of the We can research if there's a possible way to send this information through multipart or we can create a workaround. |
Ahh, yeah we lose the ability to send nested values, that's true. But it would still be useful for asynchronous uploads to Usecase: uploading files to insert into a WYSIWYG editor |
For uploading images, next to sending the image's data string through a regular POST request?
The text was updated successfully, but these errors were encountered: