1 Reply Latest reply on Feb 9, 2013 11:30 AM by AndyFrazier_1

    Populating PHP Container Fields Using iPhone Camera?

    StevenChang

      Title

      Populating PHP Container Fields Using iPhone Camera?

      Your post

      I know that Filemaker Go will allow container fields to be populated using the iPhone camera, but what about PHP container fields? I've created a single container field PHP site using FM PHP Site Assistant and it doesn't appear to work. I'm wondering if there is a way to enable this function.

        • 1. Re: Populating PHP Container Fields Using iPhone Camera?
          AndyFrazier_1

               1) Use a regular <input type="file"> input.

               2) On iOS, when you click the button produced by that input, one of the options is to take a photo.

               3) Although I'm unaware of a way to directly populate a container field this way, in FM12 you can script it, using InsertFromURL

               4) To do that, pass the path to the uploaded file as a parameter to the script.

               5) Since I'm now storing the file in FM, I don't like to clutter up my webserver, after I have run the script I use php's "unlink()" function to delete the uploaded file.