Skip to content
New issue

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

File upload doesn't work with drag and drop directory #2252

Open
DevOfManyThings opened this issue Feb 20, 2025 · 0 comments · May be fixed by #2233
Open

File upload doesn't work with drag and drop directory #2252

DevOfManyThings opened this issue Feb 20, 2025 · 0 comments · May be fixed by #2233

Comments

@DevOfManyThings
Copy link

🐛 Bug report

File upload component with directory enabled doesn't work if you drag and drop the directory into the dropzone, as it only passes through the directory itself as a file rather than the contents of the directory which match the accept criteria.

💥 Steps to reproduce

  1. Create File Upload with directory enabled
  2. Drop a directory on the dropzone

I'm using Skeleton's implementation which can be found here in case there's something wrong with their implementation of this component?

💻 Link to reproduction

CodeSandbox reproduction: I'm away from my computer for the next few days so can make it next week if needed and just keep this issue on ice until then.

🧐 Expected behavior

Behaviour should be the same as when a user selects a directory using the File Dialog (eg windows file exporer), as that works perfectly

🧭 Possible Solution

🌍 System information

Software Version(s)
Zag Version 0.78.3
Browser Chrome 133.0.6943.99
Operating System Windows 11

📝 Additional information

@segunadebayo segunadebayo linked a pull request Feb 20, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant