Closed AviKKi closed 4 years ago
acceptType attribute is case sensitive, which is a bit bad user experience for users who upload files with extension JPG or PNG.
A quick fix is to include uppercase extensions, like
acceptType={['jpg', 'png', 'jpeg', 'JPG', 'PNG', 'JPEG']}
But extension comparison should be case insensitive by default and allow case sensitive checking by a boolean Prop like
acceptType={['jpg', 'png', 'jpeg']} isCaseSensitive={true}
Let me know if this makes sense, I would love to contribute.
it was fixed by this PR https://github.com/vutoan266/react-images-uploading/pull/64 and will be released at 3.1.0
3.1.0
I'm closing the issue since it's been solved.
acceptType attribute is case sensitive, which is a bit bad user experience for users who upload files with extension JPG or PNG.
A quick fix is to include uppercase extensions, like
But extension comparison should be case insensitive by default and allow case sensitive checking by a boolean Prop like
Let me know if this makes sense, I would love to contribute.