Note: FileMaker WebDirect does not support container data that is linked by reference. Referenced container data displays as a static icon and can’t be exported.
You may need scripted insert (from URL may be able to run on server) or getting file contents plug-in function.
Hello, thank you for your answer.
The documentation say "not support container data that is linked by reference", but could be stored externally because I tested with normal container (not calculated) and work. So is possible I don't understand what means "by reference" in this case. Moreover I'm really surprised because with Instant Web Page and Filemaker 13 work fine, why Filemaker remove this feature on Web Direct?
My challenge is not insert images, I use a php form on web server to do that, organising all images in folders as I need. I just cannot see these via Web using FileMaker Server 14.
Any other idea to show images in a calculated field with Web Direct? Or we have just to develop a totally different solution?
"Reference" mean container field store only the file path, not content. So the path should be accessible from each "client". Server only provide path (as text), then client get content using the path. WebD user usually can't access shared folder in the LAN.
You can change the calculation result to file content
Base64Decode ( Base64Encode ( "yourFilePath" ) ; "filename" )
But "yourFilePath" should be accessible when calculate, so if you use this in field calculation and store image files in shared folder in LAN, "create new record" on WebD user won't work. Calculating on server with PSOS can solve it.
Work Fine!!!! Thank you very much!!!
Sorry I wrote wrong thing, that ""create new record" on WebD user won't work."
On WebD, calculation is done on FMS without PSOS (of course, since browser can't calculate FM functions) so it works like as FMPro running on the FMS server.
Then, you need to take care of the "yourFilePath" and "filename" string. If users can input any path, files accessible from server (with FMS service account access?) can be stolen.
Hi, thank you for your advice. Our application run on a protected VPN with just 10 doctors working on it. Your point is correct, but we don't worry about this.
Best regards and again, thank you to clarify this point about Base64Decode and Base64Encode. Fm documentation is really poor.