TIL:
You can create virtual files in JS and add them to a file input, but you can't set the value or files properties directly.
You need to use a DataTransfer object.
TIL:
You can create virtual files in JS and add them to a file input, but you can't set the value or files properties directly.
You need to use a DataTransfer object.