formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

Folder Upload on a file component.

Open Justinlcx opened this issue 9 months ago • 1 comments

Describe the bug Formio doesn't allow attaching a folder in the File component using the Browse Files button. However, you can drag and drop a folder into the drop zone, where it is treated as a file. If selecting a folder with the button isn't possible, dragging and dropping a folder shouldn't be allowed either.

Version/Branch Formio.js 4.19 Also on Playground

To Reproduce Steps to reproduce the behavior:

  1. Create a new form with a File Component.
  2. Drag a Folder ( with files insides ) from your computer to the drop zone.
  3. New line will appear with [object Object] as error.

Expected behavior Message indicating that folders cannot be uploaded.

Screenshots

Image

Justinlcx avatar Mar 05 '25 19:03 Justinlcx

@Justinlcx Thank you for your contributions! We created a ticket for dev review. For internal reference: FIO-9886

VikkiAlenn avatar Mar 19 '25 15:03 VikkiAlenn