Create FileObject database by default, and track file references in objects #7067
Labels
state:duplicate
Duplicate of already reported issue
type:feature
New feature or improvement of existing feature
Is your feature request related to a problem? Please describe.
For my servers, I use an afterSaveFile trigger to create a class that I can use to track the files uploaded, so that I can moderate them via Parse Dashboard, as there are multiple classes / locations that reference files. In an afterSave trigger on these classes, if a file is removed, I decrement references on the FileObject class, so I can manually delete FileObjects with 0 references.
Describe the solution you'd like
Personally, I see inbuilt file tracking as a feature that should be inbuilt, so developers can be more aware of the content that is uploaded to their Parse Server. It could also allow for easier file cleanup (deleting unreferenced files to save storage space) by creating a simple script to delete FileObjects where reference count = 0.
Describe alternatives you've considered
Can already be supported via cloud triggers.
Additional context
-Clean up files
-Cloud code triggers
The text was updated successfully, but these errors were encountered: