mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-27 18:58:46 -06:00
fix: restricted svg upload in profile image and brand logo (#2813)
This commit is contained in:
@@ -125,7 +125,13 @@ export const EditLogo = ({ product, environmentId, isViewer }: EditLogoProps) =>
|
||||
/>
|
||||
)}
|
||||
|
||||
<Input ref={fileInputRef} type="file" accept="image/*" className="hidden" onChange={handleFileChange} />
|
||||
<Input
|
||||
ref={fileInputRef}
|
||||
type="file"
|
||||
accept="image/jpeg, image/png"
|
||||
className="hidden"
|
||||
onChange={handleFileChange}
|
||||
/>
|
||||
|
||||
{isEditing && logoUrl && (
|
||||
<>
|
||||
|
||||
@@ -144,7 +144,7 @@ export const EditProfileAvatarForm = ({ session, environmentId }: EditProfileAva
|
||||
inputRef.current = e;
|
||||
}}
|
||||
className="hidden"
|
||||
accept="image/*"
|
||||
accept="image/jpeg, image/png"
|
||||
onChange={(e) => {
|
||||
field.onChange(e.target.files);
|
||||
form.handleSubmit(onSubmit)();
|
||||
|
||||
Reference in New Issue
Block a user