Deleted attachments in the note, files are not deleted
Open
Nobody has claimed this yet.
bug
feature: attachments
need to reproduce
- Dominant language
- JavaScript
- Stars
- 738
- Forks
- 162
- Avg merge
- 6h 2m
- Merged PRs (30d)
- 35
Description
Steps to reproduce
- Insert a link to an existing image. The file is copied to the Attachment folder.
- Delete the link inserted under point 1
- The file still exists in the Attachment folder.
Expected behaviour
If the link is deleted, the associated file must also be deleted.
Server
Please complete the following information.
- Notes app version: 4.8.1
- Nextcloud version: 27
- OS: Linux
- Web server: apache
- PHP version: 8.1
- Database: MariaDB
Nextcloud configuration:
```
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder
```
Client
Please complete the following information.
- Browser (incl. version):
- OS:
Log files
Add relevant parts of your nextcloud.log and/or your browser's JavaScript console here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files or tests. Start by reproducing the attachment workflow in the Notes app, then trace where the link is deleted and where the copied file is stored; done means deleting the link also removes its associated file from the Attachment folder.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100