Use UUID instead of GUID when opening FileDocument
0
Hi Mendix Community, One of our clients has requested that we use the file document UUID instead of GUID when opening uploaded documents in the browser. Do you have any suggestions on how to proceed with this? below is a sample of link when opening the document: http://localhost:8088/file?guid=171699735793551551&changedDate=1734329553867&name=Exit%2520Permit.jpg&target=window
asked
Emad Abdrabbo
4 answers
0
You can create a UUID with th javaaction RandomHash in CommunityCommons. Store this hash in a new attribute of the specialization of the FileDocument and use it as the parameter for you page URL.