I have Back-end
done in Java
where I get some files from the front and save them to a folder. This system ran on a server Windows
with Tomcat
but recently it had to be migrated to Debian
.
Previously I defined the path to save the files as follows:
D:\Auditoria\uploads\
Currently the path where I want to save these files is:
/opt/tomcat/modulos/auditoria/uploads
CanIgothatwaytosavemyfiles?Oristhereanotherway?
Icurrentlycreatemyarchivethisway:
privatefinalStringDIRETORIO_UPLOAD_ARQUIVO="D:\Desenvolvimento\Angular\Auditoria\uploads\anexos\";
File arquivo= new File(DIRETORIO_UPLOAD_ARQUIVO, file.getFileName());