mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 07:40:43 +01:00
Currently, only objects can be passed in, and it is automatically serialized into json and sent via jQuery .ajax(). This PR extends the module so a FormData object can be passed in, and updates the module so it uses Fetch API instead of jQuery. At this time regular requests continue to use jQuery for backwards compatibility. Use case: file uploads via API.