4 Replies Latest reply on Nov 2, 2015 3:12 PM by user19752

    Insert from URL using file protocol - resulting filename

    fmdataweb

      I'm using the Insert from URL script step with the file protocol to insert a local file into a container field - this is all working well.

       

      I've noticed however that the resulting filename of the inserted file includes the full file path of the inserted file. For example I've just inserted a file and the file name of the container field (when I use GetAsText ( container field ) ) is:

       

      _Program Files_FileMaker_FileMaker Server_Data_Documents_Uploads_3.jpg

       

      I would prefer the file name to be preserved, so in this case it would just be "3.jpg". Does anyone know of a way to keep the file name when inserting a file using the file::/// protocol?