Skip to content

Commit

Permalink
Updated allowed image formats
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmycutie committed Sep 18, 2024
1 parent a496947 commit 244fb8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion web/core/components/core/image-picker-popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ export const ImagePickerPopover: React.FC<Props> = observer((props) => {
const { getRootProps, getInputProps, isDragActive, fileRejections } = useDropzone({
onDrop,
accept: {
"image/*": [".png", ".jpg", ".jpeg"],
"image/jpeg": [],
"image/png": [],
},
maxSize: config?.file_size_limit ?? MAX_FILE_SIZE,
});
Expand Down
3 changes: 2 additions & 1 deletion web/core/components/core/modals/user-image-upload-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export const UserImageUploadModal: React.FC<Props> = observer((props) => {
const { getRootProps, getInputProps, isDragActive, fileRejections } = useDropzone({
onDrop,
accept: {
"image/*": [".png", ".jpg", ".jpeg"],
"image/jpeg": [],
"image/png": [],
},
maxSize: config?.file_size_limit ?? MAX_FILE_SIZE,
multiple: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export const WorkspaceImageUploadModal: React.FC<Props> = observer((props) => {
const { getRootProps, getInputProps, isDragActive, fileRejections } = useDropzone({
onDrop,
accept: {
"image/*": [".png", ".jpg", ".jpeg"],
"image/jpeg": [],
"image/png": [],
},
maxSize: config?.file_size_limit ?? MAX_FILE_SIZE,
multiple: false,
Expand Down

0 comments on commit 244fb8a

Please sign in to comment.