Filestorage on linux server

We found that filestorage is being created in tomcat/webapps/app-core/work folder by default on linux server so it’s being erased after every deployment of war-files. I think it’s not correct. We’ve lost all our attachments several times until found the root cause and had to set cuba.fileStorageDir parameter in the application settings.
On windows server default filestorage folder is tomcat/work/app-core, as described in doc.
Our CUBA platform version is 6.8.4.

Hi @evgenypopov this can help you

Regards,

Nelson F.

By default, the file storage root is inside the directory defined by cuba.dataDir app property, which is set in WEB-INF/local.app.properties of your WAR file.