Open akrherz opened 5 years ago
It would be great to add the following options regarding files removal:
delete a file right after a user has it downloaded
Interesting concept.
clean up tmp folder after some definable time frame
Like a cron? How should the system respond when a user clicks a link to a file that no longer exists?
@Fishbowler
...Migrated from Ignite Jira OF-1459...
reported by @wrooot
Have only tested this on Windows, not sure what happens on other platforms. Plugin's readme states that files will be deleted from the temp folder on the server after Openfire is turned off or when server runs out of space. On Windows i have found location of temp folders (if running with a regular user: C:\Users\User\AppData\Local\Temp\xmppfileupload_number\, if running as a service C:\Windows\Temp). In both running modes temp files are not deleted when Openfire is restarted. Haven't tested if Openfire will try to delete them when server runs out of space. But it seems that it was a presumption that OS will handle this on its own. Windows is often not deleting files in Temp folders for a long time or ever. So in this case server can run out of space and even in that case might not delete them automatically.
We should at least clarify the readme on that. Ideally there should be a mechanism for Openfire to clean these files.