What is the filedocument path when uploaded ?

0
is there’s any way to get the path for the uploaded file ?
asked
2 answers
0

Why do you need the file path?

 

answered
0

As far as I know, the Mendix Interfaces do not guarantee that there is any sort of intermediate storage of uploaded files under a specified path.

If you want to manipulate files from a Java action, I’d recommend getting an InputStream from Core.getFileDocumentContent(), and then using Files.copy() to store the InputStream’s contents on the local file system… take care to store the result of whatever you’re doing with Core.storeFileDocumentContent(), and delete the temporary file, otherwise you’ll run out of disk space pretty soon.

answered