How to integrate FileMaker with Cloudinary?

Follow

Comments

5 comments

  • Avatar
    Tom Langton

    Solves the issue of uploading from FM very nicely.

     

    Thanks.

    0
    Comment actions Permalink
  • Avatar
    Svenja Weschke

    how can I integrate following options to the cURL functions:

    crop c_limit

    progessive fl_progrssive

    and different sizes to which the image should be resized

    for example: w_2560,h_1600 and w_1920,h_1080

     

    if I add this to the url it does not work

    Thanks for any help

    0
    Comment actions Permalink
  • Avatar
    Roee Ben Ari

    Hi Svenja, can you please try editing your script as per the below - 

    Set Variable [ $transformation; Value:"w_2560,h_1600,c_limit,fl_progressive" ]
    
    Set Variable [ $data; Value:"file=" & $file_to_upload & "&public_id=" & $public_id & "&timestamp=" & $timestamp & "&api_key=" & $api_key & "&signature=" & $signature & "&transformation=" & $transformation]

     


    0
    Comment actions Permalink
  • Avatar
    Kevin Mead

    Is there a way to specify what folder to upload to in Cloudinary.  From the filemaker script?

    0
    Comment actions Permalink
  • Avatar
    Aleksandar Kostadinov

    Hi Kevin,

    The folder(s) are part of the public_ids by default, therefore, you can set the folder or sub-folders as part of your $public_id value. E.g. You can set the public_id to be "folder1/folder2/image" and it'll result in the image being stored under the two folders specified.

    Alternatively, you can add a new parameter in the upload called 'folder'.

    Set Variable [ $folder; Value:"example_folder" ]

    If you decided to use the public_id approach and add the folder as part of that variable then you don't need to update another part of the code.

    On the other hand, if you decided to supply a 'folder' parameter then you will also need to add it to the line (39 in the above example) that generates the authentication signature. In addition, you would also add it to the $data variable in the post's example (line 40). Please note that the parameters passed for signing need to be ordered alphabetically, therefore, in the above example, the folder would be the first parameter. 

    Please try this and let us know how it goes.

    0
    Comment actions Permalink

Please sign in to leave a comment.