react-drag-drop-files
react-drag-drop-files copied to clipboard
Error message with file name in it
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