slimsim Posted February 16, 2021 Posted February 16, 2021 I'm trying to let my users upload files in a RESTful spring boot web service. I followed this tutorial https://www.callicoder.com/spring-boot-file-upload-download-rest-api-example/ where the uploaded files will be stored in the local file system. it says to configure what folder the files should be stored in with file.upload-dir=/Users/callicoder/uploadsBut when I package the war-file I must have that folder on my computer, which leads me to believe that it will not work when I deploy it to the server. And sure enough, when I deploy the war-file, I get "deploy failed with error", even though that file is on my "File Manager". Does any one have any tips on how to achieve this? or is this not allowed on HelioHost, should I save the files in the DB instead?Do you have any good tutorials you can point me to? Thanks in advance!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now