Skip to content

Commit 9dec0ec

Browse files
authored
Merge pull request #673 from GetStream/psd-upload-bug
upload-psd-bug
2 parents 41d4a01 + e42bab2 commit 9dec0ec

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)