Answer the question
In order to leave comments, you need to log in
How to work with the file system in Spring Boot?
I found some guides about this, but here's what I'm worried about...
First of all, now while I'm working on the project, the files will be saved to my computer. But then, when I upload the project to the server, there is another file system, other directories, etc. - how to deal with it? Plus, my computer is on Win, and the server will most likely be on Linux.
Second, what about security? How do I filter what is being downloaded to me? And then some script will be loaded or something else. How can you track it at all?
How to keep track of remaining disk space?
Answer the question
In order to leave comments, you need to log in
But then, when I upload the project to the server, there is another file system, other directories, etc. - how to deal with it?
upload.path
it will be /home/Desktop/uploads
, and for prod it will be uploads/
, etc.Second, what about security? How do I filter what is being downloaded to me? And then some script will be loaded or something else. How can you track it at all?
image/*
etc. How to keep track of remaining disk space?
But then, when I upload the project to the server, there is another file system, other directories, etc.
what about security?prevent the user from downloading anything. What the user uploaded - never run.
How to keep track of remaining disk space?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question