Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachments Persisting in Local Storage After Deletion / No Option to Delete Attachments on Mobile Device #5851

Open
sheafile opened this issue Nov 27, 2024 · 1 comment

Comments

@sheafile
Copy link

Describe the issue

Please redirect me if I'm in the wrong place with this -

Attachments (Photos/PDFs) create on Qfield mobile app persist locally and cannot be deleted, even if the associated feature is deleted, and the attachment is removed from the cloud. No option in mobile app to delete local copies of the attachments.

Pushing this issue from discussions since a few of us were experiencing a similar problem: #4171

Reproduction steps

Steps to reproduce the behavior:

Create a layer (In my case a gpkg) on the mobile Qfield app that has an attachment widget (in my case a picture)
Add a new feature (in my case a point) and use the widget to generate an attachment
Synchronize the project and push the new feature and it's attachment to the cloud
After synchronization, delete the feature in the mobile device and synchronize w/ cloud data
Now, the feature will no longer exist, but the attachment will remain in the cloud.
Delete the attachment in the cloud, and synchronize mobile device.
Check the local DCIM folder, the attachment will persist in the local folder, with no option to delete.

Expected behavior

Expected Attachment/Photo to be removed from local device after the Attachment/Photo was deleted from, and synced with cloud. Also expected there to be option to delete extraneous file on mobile app.

Observed behavior

Attachment persisted on local device even after being removed from Cloud. No in-app options to delete the unwanted Attachment/Photos.

Screenshots and GIFs

[If applicable, add screenshots and GIFs to help explain your problem.]

image
image

QGIS (please complete the following information)

  • OS: [Windows 11]
  • QGIS Version [3.34.4, Prizren]
  • QFieldSync Version [4.10.1]

QField (please complete the following information)

  • Device: [Iphone XR]
  • OS: [17.6.1]
  • QField version: [3.4.5 Ebo (d260bb)]

Additional information

[If the problem happened with QFieldCloud, please add your username and project name.]
Moose - [Fruit-Fishing-Fun-Map]

@nirvn
Copy link
Member

nirvn commented Nov 30, 2024

@sheafile , if you remove the locally stored version of the cloud project in QField (i.e. by clikcing on the 'QFieldCloud projects' button on the home screen, long pressing on a cloud project and selecting the 'remove stored project' menu item), all of these extra files will be gone. It'll require you to then re-download the whole cloud project, but you'll have saved space.

Is that something you were aware of, and if so, I assume this means you'd like something more than that?

@nirvn nirvn added the feedback label Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants