Skip to content

Conversation

@adepssimius
Copy link

@adepssimius adepssimius commented Sep 20, 2025

What type of PR is this?

  • bug

What this PR does / why we need it:

Add the ability to add a photo with the camera from the edit context.

Which issue(s) this PR fixes:

#891 May be related.
Fixes #1010

Testing

I built and pushed this as an image at ghcr.io/adepssimius/homebox:rootless-edit-camera and deployed to my cluster as a test deployment. I was then able to use the camera from both the create item context and the edit item context.

type="file"
accept="image/png,image/jpeg,image/gif,image/avif,image/webp;capture=camera"
@change="uploadImage"
/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about this approach as the user might want to upload e.g. pdf or really any kind of file, i feel like maybe having a separate button for taking a picture could be good, maybe only show on mobile. Also could be good to support multi file upload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upload photo from create item shows camera, but no camera from edit item

2 participants