2 Replies Latest reply on Sep 3, 2013 1:07 PM by disabled_ntaylor

    Cannot Import Pictures from Temporary Folder

    jcooper

      Summary

      Cannot Import Pictures from Temporary Folder

      Product

      FileMaker Go

      Version

      12.0v1

      Operating system version

      ios 5 iPad

      Description of the issue

      BY specifying path in the Export Field Contents script step, it's possible to export an image to the device's temp folder (per p13 of FMGo12 Development Guide).  However, when specifying the same path with an Insert Picture script step, the choose file dialog appears, forcing the user to choose an image from the filemaker Documents.

      Maybe it's me, but kinda defeats the purpose of having access to temp folder when you can't get what you put there (email notwithstanding).

      Steps to reproduce the problem

      Make a container field then write a script.

      set variable $p to get(temporarypath) & "picture1.jpg" and have a script step export to that path.

      Then use the same path and try to import the picture back into the container field.

      Expected result

      The image should import

      Actual result

      A dialog appears.

        • 1. Re: Cannot Import Pictures from Temporary Folder
          rahool22

               I am having the same problem. Did you ever solve the issue or get an answer?

          • 2. Re: Cannot Import Pictures from Temporary Folder

            jscooper & Raul Tello:

                 Thank you for the posts. I apologize this post slipped through the cracks and the response was delayed.

                  

                 I am able import from the temporary path on iOS 5 and iOS 6. 

                  

                 To export, I used the following script:

                  

                 Set Variable [$$image; Value: "image:" & Get ( TemporaryPath ) & "filename.png"]

                 Export Field Contents [Table::Image; "$$image"]

                  

                 To import, I used the following script:

                  

                 Go to Field [Select/perform; Table::Image]

                 Insert Picture ["$$image"]

                  

                 If "image:" is appended to the front of the file path, then does this work?

                  

                 TSFalcon
                 FileMaker, Inc.