Hi,
I am unable to upload file in my deployed Server Tomcat 10, Ubuntu 24.04 (Unable to upload a file using jmix 2 UI and also with REST API.). But i can able to upload the file successfully in my development environment(localhost). I am getting the following error in the Production Server:
And below is my configurations:
- My build.gradle has the necessary dependency:
implementation 'io.jmix.localfs:jmix-localfs-starter'
- For REST Configuration for file Upload:
@SpecificPolicy(resources = "rest.fileUpload.enabled")
void restFileUpload();
- Specified the location in the application.properties
jmix.localfs.storage-dir = /opt/file-storage
Thanks in advance.