1. I make a picture upload function. After the picture is uploaded, it will be placed under the project file.
2. After completion, an address for accessing the picture will be returned.
3. At this time, an error 404## will be reported when accessing this address. #4. Can be accessed normally after redeployment
When you call redeployment, do you mean restarting the server or redeploying the webapp? Is it a system permissions issue?
Can you "separate movement and stillness"?
For example, in Nginx or Apache configuration: static files (pictures, css, js, etc.) are returned directly by the web server; dynamic requests are then forwarded to the backend.