Open dgram opened 4 years ago
I think this is caused by the fact that the headers don't contain the correct boundary in this case. As per https://www.npmjs.com/package/form-data#axios, we should add a way to override the headers for this specific request so you can use const formHeaders = form.getHeaders();
to pass it the header with the correct boundary
🐞 Bug report
Description
I've got the same error as described in directus/sdk-js#78 for my node FormData Upload. So i try to upload files via directus-sdk-js on my node server and got the message
Missing boundary in multipart/form-data POST data
🔬 Minimal Reproduction
🔥 Exception or Error
PHP Server Warning
Directus Exception
🌍 Your Environment
SDK Version:
v6.0.0
Directus Version:v8.4.0
PHP-Version:7.3.9