react-drag-drop-files icon indicating copy to clipboard operation
react-drag-drop-files copied to clipboard

Error message with file name in it

Open rsilvaj opened this issue 1 year ago • 0 comments

Hello all,

in validateFile function there is:

if (onTypeError) onTypeError('File type is not supported');

the lib has the information about which file has the error, is it possible to add fileName information on error? such as:

if (onTypeError) onTypeError(${file.name} type is not supported);

BR

rsilvaj avatar Sep 15 '23 13:09 rsilvaj