How to display selected file path/name in other column after File Manager browse upload in Mendix?

0
Hi,I am working on a Mendix screen that contains:Checkbox selectionBrowse/File upload buttonColumn to display selected file path/nameI am using an entity inherited from system.FileDocumentRequirement:After the user selects a file using the FIle Manager/Browse button, I want to display the selected file path (or atleast the file name) dynamically in another textbox/column on the same row.My questions are:Is it possible to retrieve the actual local file system path in Mendix?If not, what is the recommended approach to display the uploaded file name /path?Has anyone implemented a similar file manager UI with dynamic rows?Any suggestions or best practices would be helpful.Thanks!
asked
1 answers
0

Hi Nikhil,


  1. You cant retrieve the path, Itstead you can create a file URL. For that you need to get the application URL and Get GUID(for that file) and concatinate both in microflow like "$ApplicationURL+'/file?guid='+$GUID". It will view or download the file directly.
  2. After uploading the file, You can get the name of the file in file document entity, You can get from that.
  3. Yes , I have implemented this by using both 1st and 2nd point i mentioned.

I hope it will helps.

answered