We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var fd = new FormData() var f = new File(['abc'], 'folder/readme.md', { type: 'text/plain' }) fd.set('x', f) new Response(fd).formData().then(fd => fd.get('x').name).then(console.log)
To log folder/readme.md
folder/readme.md
actual output: readme.md
readme.md
node-fetch
/
new File(parts, 'dumm/di/dumm.txt')
i guess why the hole reason why this is even supported is b/c browser have been able to use
<input type=file webkitdirectory>
then when you select some folder, and upload them all the content-disposition would then be:
Content-Disposition: form-data; name="files"; filename="folder/readme.md"
busboy have this preservePath option... would like for you to set it to true
preservePath
true
The text was updated successfully, but these errors were encountered:
would you like to send in a PR?
Sorry, something went wrong.
Sure.
awesome @jimmywarting 🙏 👏
Successfully merging a pull request may close this issue.
Bug Description
Reproducible By
Expected Behavior
To log
folder/readme.md
Logs & Screenshots
actual output:
readme.md
Environment
Additional context
node-fetch
) returns the full filename./
is totally fine.new File(parts, 'dumm/di/dumm.txt')
i guess why the hole reason why this is even supported is b/c browser have been able to use
then when you select some folder, and upload them all the content-disposition would then be:
Content-Disposition: form-data; name="files"; filename="folder/readme.md"
busboy have this
preservePath
option... would like for you to set it totrue
The text was updated successfully, but these errors were encountered: