Added image support

This commit is contained in:
Flatlogic Bot 2025-08-19 18:56:52 +00:00
parent fefa78ae57
commit 74000da528
4 changed files with 8 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -83,6 +83,7 @@ const FormImagePicker = ({
className='absolute top-0 left-0 w-full h-full opacity-0 outline-none cursor-pointer -z-1'
onChange={handleFileChange}
accept={accept}
capture
disabled={loading}
/>
</label>

View File

@ -202,12 +202,14 @@ const EditBottlesPage = () => {
path={'bottles/picture'}
name='picture'
id='picture'
accept='image/*'
capture
schema={{
size: undefined,
formats: undefined,
}}
component={FormImagePicker}
></Field>
/>
</FormField>
<FormField label='Age'>

View File

@ -177,6 +177,8 @@ const BottlesNew = () => {
path={'bottles/picture'}
name='picture'
id='picture'
accept='image/*'
capture
schema={{
size: undefined,
formats: undefined,