Skip to content

Commit e42bab2

Browse files
author
Dan Carbonell
committed
upload-psd-bug
1 parent 41d4a01 commit e42bab2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/MessageInput/hooks/messageInput.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,10 @@ export default function useMessageInput(props) {
681681
.slice(0, maxFilesLeft)
682682
.forEach((file) => {
683683
const id = generateRandomId();
684-
if (file.type.startsWith('image/')) {
684+
if (
685+
file.type.startsWith('image/') &&
686+
!file.type.endsWith('.photoshop') // photoshop files begin with 'image/'
687+
) {
685688
dispatch({ type: 'setImageUpload', id, file, state: 'uploading' });
686689
} else if (file instanceof File && !noFiles) {
687690
dispatch({ type: 'setFileUpload', id, file, state: 'uploading' });

0 commit comments

Comments
 (0)