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

Add 'webkitRelativePath' support for uploads using <input> #302

Open
Nikita-schetko opened this issue Feb 20, 2024 · 0 comments
Open

Add 'webkitRelativePath' support for uploads using <input> #302

Nikita-schetko opened this issue Feb 20, 2024 · 0 comments

Comments

@Nikita-schetko
Copy link

Hey guys! Maybe we can add support of 'webkitRelativePath' here ? It would be really helpful, because will give consistent behaviour for dragNdrop and just browser folder selection (using 'directory' mode)

    <input 
      type="file" 
      #fileSelector 
      [accept]="accept" 
      [attr.directory]="directory || undefined" 
      [attr.webkitdirectory]="directory || undefined"
      [attr.mozdirectory]="directory || undefined"
      [attr.msdirectory]="directory || undefined"
      [attr.odirectory]="directory || undefined"
      [multiple]="multiple"
      (change)="uploadFiles($event)" 
      class="ngx-file-drop__file-input" 
    />
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

No branches or pull requests

1 participant