#Issue with accessing files in a directory

1 messages · Page 1 of 1 (latest)

spiral fulcrum
#

I set up a controller of files in spring that posts files to a directory under the root of my project, and a method that gets the path to the file. I configured app.yaml so that the resources in that file are accessible but I still get an error that the path is resolved but the file cannot be accessed. If you need to take a look at the code I can send it.

finite hemlockBOT
#

<@&1004656351647117403> please have a look, thanks.

spiral fulcrum
#

What do you want to see the controller or the yaml config file?

spiral fulcrum
#

It's hardcoded for now

#

Here is the full error

#

"Resource path "uploads/K%C3%A9nitra/Kenitra.jpg" was successfully resolved but resource "URL [file:uploads/K%C3%A9nitra/Kenitra.jpg]" is neither under the current location "URL [file:./]" nor under any of the allowed locations [URL [file:./], ServletContext resource [/]]"

#

and here is the yaml

#

I don't have a webmvc and I still didn't add spring security