MBS FileMaker Plugin Example Databases

CURL FTP Upload

All examples are included with download of MBS FileMaker Plugin.

CURL FTP Upload.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts7
Value Lists0
Custom Functions0
Custom Menus33
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
CURL Test
8 fields defined, 1 record
CURL Test

Fields

Table Name: CURL Test - 8 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
ResultNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      ImageNormal, BinaryAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
          headerNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
                  debugNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                      URLNormal, TextAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Global
                      • Repetitions: 1
                      • Index Language: German
                          NameNormal, TextAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          Storage:
                          • Global
                          • Repetitions: 1
                          • Index Language: German
                              PasswordNormal, TextAuto-Enter:
                              • Allow editing
                              Validation:
                              • Only during data entry
                              Storage:
                              • Global
                              • Repetitions: 1
                              • Index Language: German
                                  filenameNormal, TextAuto-Enter:
                                  • Allow editing
                                  • Do not replace existing value for field (if any)
                                  • Context table: CURL Test
                                    Calculation: GetAsText ( CURL Test::Image )
                                  Validation:
                                  • Only during data entry
                                  Storage:
                                  • Repetitions: 1
                                  • Indexing: None
                                  • Automatically create indexes as needed
                                  • Index Language: German

                                      Layout Objects: CURL Test

                                      Regular Fields

                                      Field Name: CURL Test::Result
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 90 pt
                                      • Left: 138 pt
                                      • Bottom: 109 pt
                                      • Right: 391 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: System Default
                                      • Go to next field using: Tab key
                                      Yes

                                      Field Name: CURL Test::Image
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 111 pt
                                      • Left: 138 pt
                                      • Bottom: 281 pt
                                      • Right: 391 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: System Default
                                      • Go to next field using: Tab key
                                      No

                                      Field Name: CURL Test::URL
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 18 pt
                                      • Left: 138 pt
                                      • Bottom: 37 pt
                                      • Right: 391 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: System Default
                                      • Go to next field using: Tab key
                                      No

                                      Field Name: CURL Test::Name
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 41 pt
                                      • Left: 138 pt
                                      • Bottom: 60 pt
                                      • Right: 391 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: System Default
                                      • Go to next field using: Tab key
                                      No

                                      Field Name: CURL Test::Password
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 63 pt
                                      • Left: 138 pt
                                      • Bottom: 82 pt
                                      • Right: 391 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: System Default
                                      • Go to next field using: Tab key
                                      No

                                      Field Name: CURL Test::debug
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 288 pt
                                      • Left: 138 pt
                                      • Bottom: 626 pt
                                      • Right: 726 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: System Default
                                      • Go to next field using: Tab key
                                      Yes

                                      Field Name: CURL Test::filename
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 216 pt
                                      • Left: 396 pt
                                      • Bottom: 235 pt
                                      • Right: 726 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: System Default
                                      • Go to next field using: Tab key
                                      Yes

                                      Buttons

                                      Button PropertiesCoordinatesScript/Script Step
                                        Type:
                                      • Text: Upload Text file
                                      • Top: 91 pt
                                      • Left: 396 pt
                                      • Bottom: 117 pt
                                      • Right: 553 pt
                                      • Anchoring: Left, Top
                                      Perform Script [ “UploadText” ]

                                      Scripts:


                                      Button PropertiesCoordinatesScript/Script Step
                                        Type:
                                      • Text: Upload File In Container
                                      • Top: 125 pt
                                      • Left: 396 pt
                                      • Bottom: 151 pt
                                      • Right: 553 pt
                                      • Anchoring: Left, Top
                                      Perform Script [ “UploadFile” ]

                                      Scripts:


                                      Button PropertiesCoordinatesScript/Script Step
                                        Type:
                                      • Text: Upload JPEG In Container
                                      • Top: 159 pt
                                      • Left: 396 pt
                                      • Bottom: 185 pt
                                      • Right: 553 pt
                                      • Anchoring: Left, Top
                                      Perform Script [ “UploadJPEG” ]

                                      Scripts:


                                      Button PropertiesCoordinatesScript/Script Step
                                        Type:
                                      • Text: Upload Text file
                                      • Top: 91 pt
                                      • Left: 569 pt
                                      • Bottom: 117 pt
                                      • Right: 726 pt
                                      • Anchoring: Left, Top
                                      Perform Script [ “UploadText with Progressdialog” ]

                                      Scripts:


                                      Button PropertiesCoordinatesScript/Script Step
                                        Type:
                                      • Text: Upload File In Container
                                      • Top: 125 pt
                                      • Left: 569 pt
                                      • Bottom: 151 pt
                                      • Right: 726 pt
                                      • Anchoring: Left, Top
                                      Perform Script [ “UploadFile with Progressdialog” ]

                                      Scripts:


                                      Button PropertiesCoordinatesScript/Script Step
                                        Type:
                                      • Text: Upload JPEG In Container
                                      • Top: 159 pt
                                      • Left: 569 pt
                                      • Bottom: 185 pt
                                      • Right: 726 pt
                                      • Anchoring: Left, Top
                                      Perform Script [ “UploadJPEG with Progressdialog” ]

                                      Scripts:


                                      Script Hierarchy

                                      UploadText
                                      UploadFile
                                      UploadJPEG
                                      UploadText with Progressdialog
                                      UploadFile with Progressdialog
                                      UploadJPEG with Progressdialog
                                      Trace on

                                      Next Script: [UploadFile]
                                      Script NameUploadText
                                      Run script with full access privilegesOff
                                      Include In MenuYes
                                      Layouts that use this script
                                      Scripts that use this script
                                        Script Definition
                                        Script Steps
                                        • Set Variable [ $curl; Value:MBS("CURL.New") ]
                                        • Set Variable [ $result; Value:MBS("CURL.SetOptionURL"; $curl; CURL Test::URL & "hello.txt") ]
                                        • Set Variable [ $result; Value:MBS("CURL.SetOptionUpload"; $curl; 1) ]
                                        • #credentials
                                        • Set Variable [ $result; Value:MBS("CURL.SetOptionPassword"; $curl; CURL Test::Password) ]
                                        • Set Variable [ $result; Value:MBS("CURL.SetOptionUsername"; $curl; CURL Test::Name) ]
                                        • #data to upload
                                        • Set Variable [ $result; Value:MBS("CURL.SetInputText"; $curl; "Hello World!") ]
                                        • #Require TLS 1.2 for FTP over SSL. Disable if you prefer FTP without encryption:
                                        • Set Variable [ $result; Value:MBS( "CURL.SetOptionUseSSL"; $curl; 3 ) ]
                                        • Set Variable [ $result; Value:MBS( "CURL.SetOptionSSLVersion"; $curl; 6 ) ]
                                        • #perform it
                                        • Set Field [ CURL Test::Result; MBS("CURL.Perform"; $curl) ]
                                        • Set Field [ CURL Test::debug; MBS("CURL.GetDebugAsText"; $curl) ]
                                        • Set Variable [ $result; Value:MBS("CURL.Cleanup"; $curl) ]
                                        Fields used in this script
                                        Scripts used in this script
                                          Layouts used in this script
                                            Tables used in this script
                                            Table occurrences used by this script
                                            Custom Functions used by this script
                                              Custom menu set used by this script

                                                Previous Script: [UploadText]Next Script: [UploadJPEG]
                                                Script NameUploadFile
                                                Run script with full access privilegesOff
                                                Include In MenuYes
                                                Layouts that use this script
                                                Scripts that use this script
                                                  Script Definition
                                                  Script Steps
                                                  • Set Variable [ $curl; Value:MBS("CURL.New") ]
                                                  • Set Variable [ $result; Value:MBS("CURL.SetOptionURL"; $curl; CURL Test::URL & CURL Test::filename) ]
                                                  • Set Variable [ $result; Value:MBS("CURL.SetOptionUpload"; $curl; 1) ]
                                                  • #credentials
                                                  • Set Variable [ $result; Value:MBS("CURL.SetOptionPassword"; $curl; CURL Test::Password) ]
                                                  • Set Variable [ $result; Value:MBS("CURL.SetOptionUsername"; $curl; CURL Test::Name) ]
                                                  • #data to upload from container field
                                                  • Set Variable [ $result; Value:MBS("CURL.SetInputFile"; $curl; CURL Test::Image) ]
                                                  • #Require TLS 1.2 for FTP over SSL:
                                                  • Set Variable [ $result; Value:MBS( "CURL.SetOptionUseSSL"; $curl; 3 ) ]
                                                  • Set Variable [ $result; Value:MBS( "CURL.SetOptionSSLVersion"; $curl; 6 ) ]
                                                  • #perform it
                                                  • Set Field [ CURL Test::Result; MBS("CURL.Perform"; $curl) ]
                                                  • Set Field [ CURL Test::debug; MBS("CURL.GetDebugAsText"; $curl) ]
                                                  • Set Variable [ $result; Value:MBS("CURL.Cleanup"; $curl) ]
                                                  Fields used in this script
                                                  Scripts used in this script
                                                    Layouts used in this script
                                                      Tables used in this script
                                                      Table occurrences used by this script
                                                      Custom Functions used by this script
                                                        Custom menu set used by this script

                                                          Previous Script: [UploadFile]Next Script: [UploadText with Progressdialog]
                                                          Script NameUploadJPEG
                                                          Run script with full access privilegesOff
                                                          Include In MenuYes
                                                          Layouts that use this script
                                                          Scripts that use this script
                                                            Script Definition
                                                            Script Steps
                                                            • Set Variable [ $curl; Value:MBS("CURL.New") ]
                                                            • Set Variable [ $result; Value:MBS("CURL.SetOptionURL"; $curl; CURL Test::URL & "hello.jpg") ]
                                                            • Set Variable [ $result; Value:MBS("CURL.SetOptionUpload"; $curl; 1) ]
                                                            • #credentials
                                                            • Set Variable [ $result; Value:MBS("CURL.SetOptionPassword"; $curl; CURL Test::Password) ]
                                                            • Set Variable [ $result; Value:MBS("CURL.SetOptionUsername"; $curl; CURL Test::Name) ]
                                                            • #data to upload
                                                            • Set Variable [ $result; Value:MBS("CURL.SetInputJPEG"; $curl; CURL Test::Image) ]
                                                            • #Require TLS 1.2 for FTP over SSL:
                                                            • Set Variable [ $result; Value:MBS( "CURL.SetOptionUseSSL"; $curl; 3 ) ]
                                                            • Set Variable [ $result; Value:MBS( "CURL.SetOptionSSLVersion"; $curl; 6 ) ]
                                                            • #perform it
                                                            • Set Field [ CURL Test::Result; MBS("CURL.Perform"; $curl) ]
                                                            • Set Field [ CURL Test::debug; MBS("CURL.GetDebugAsText"; $curl) ]
                                                            • Set Variable [ $result; Value:MBS("CURL.Cleanup"; $curl) ]
                                                            Fields used in this script
                                                            Scripts used in this script
                                                              Layouts used in this script
                                                                Tables used in this script
                                                                Table occurrences used by this script
                                                                Custom Functions used by this script
                                                                  Custom menu set used by this script

                                                                    Previous Script: [UploadJPEG]Next Script: [UploadFile with Progressdialog]
                                                                    Script NameUploadText with Progressdialog
                                                                    Run script with full access privilegesOff
                                                                    Include In MenuYes
                                                                    Layouts that use this script
                                                                    Scripts that use this script
                                                                      Script Definition
                                                                      Script Steps
                                                                      Fields used in this script
                                                                      Scripts used in this script
                                                                        Layouts used in this script
                                                                          Tables used in this script
                                                                          Table occurrences used by this script
                                                                          Custom Functions used by this script
                                                                            Custom menu set used by this script

                                                                              Previous Script: [UploadText with Progressdialog]Next Script: [UploadJPEG with Progressdialog]
                                                                              Script NameUploadFile with Progressdialog
                                                                              Run script with full access privilegesOff
                                                                              Include In MenuYes
                                                                              Layouts that use this script
                                                                              Scripts that use this script
                                                                                Script Definition
                                                                                Script Steps
                                                                                Fields used in this script
                                                                                Scripts used in this script
                                                                                  Layouts used in this script
                                                                                    Tables used in this script
                                                                                    Table occurrences used by this script
                                                                                    Custom Functions used by this script
                                                                                      Custom menu set used by this script

                                                                                        Previous Script: [UploadFile with Progressdialog]Next Script: [Trace on]
                                                                                        Script NameUploadJPEG with Progressdialog
                                                                                        Run script with full access privilegesOff
                                                                                        Include In MenuYes
                                                                                        Layouts that use this script
                                                                                        Scripts that use this script
                                                                                          Script Definition
                                                                                          Script Steps
                                                                                          Fields used in this script
                                                                                          Scripts used in this script
                                                                                            Layouts used in this script
                                                                                              Tables used in this script
                                                                                              Table occurrences used by this script
                                                                                              Custom Functions used by this script
                                                                                                Custom menu set used by this script

                                                                                                  Previous Script: [UploadJPEG with Progressdialog]
                                                                                                  Script NameTrace on
                                                                                                  Run script with full access privilegesOff
                                                                                                  Include In MenuYes
                                                                                                  Layouts that use this script
                                                                                                    Scripts that use this script
                                                                                                      Script Definition
                                                                                                      Script Steps
                                                                                                      • Set Variable [ $r; Value:MBS("Trace") ]
                                                                                                      Fields used in this script
                                                                                                        Scripts used in this script
                                                                                                          Layouts used in this script
                                                                                                            Tables used in this script
                                                                                                              Table occurrences used by this script
                                                                                                                Custom Functions used by this script
                                                                                                                  Custom menu set used by this script

                                                                                                                    Download example: CURL FTP Upload

                                                                                                                    Used functions:




                                                                                                                    Links
                                                                                                                    MBS Xojo Plugins

                                                                                                                    Start Chat