Not remove the files in the temp directory#182
Not remove the files in the temp directory#182davidsf wants to merge 1 commit intocoldbox-modules:developmentfrom
Conversation
…a shared directory)
|
@davidsf Good catch. I forgot that we're clearing out temp files that are older than a day. I'm not sure I want to completely remove that functionality because the temp files will build up over time. The addition of the I'm thinking we need to separate these out perhaps into separate config settings.
Thoughts? |
|
As you say, I think is more logical to have two config settings for the two different temp directories features and only remove the The question is where/when remove the files in the |
|
Just to add my $0.02 🤷🏻♂️ I think there is a real need for two seperate temp paths
Right now both are using the same path I believe early on the file uploads where just using the webroot then moved to I personally would prefer to not use the same temp location for both of these. I don't see a problem with the File uploads, IMHO however should be saved outside the webroot. I agree with @grantcopley that we need to separate these into two different settings and maybe with a setting that would turn on/off the auto deleting of files to help prevent possible conflicts with other functionality. |
With the inclusion of the config
storagePath, the temp path could be not only for cbwire, sharing the directory to other functions.So now, it dangerous to remove all files in the temp directory.