How to download all the files uploaded to the form (for Mac user)

  • Profile Image
    deadcenterfilm
    Asked on June 03, 2014 at 03:44 AM
    Can you please post a step-by-step for Mac users? 
  • Profile Image
    EltonCris
    Answered on June 03, 2014 at 04:34 AM

    Hi,

    The steps for Windows is very similar with Mac though you will have to use Terminal App. I am not a Mac user but you can try the following guide:

    1. First of all, you will need to have ruby installed on your machine. If you are on a Linux/Mac, it is most likely that you have it pre-installed.

    If you don't have Ruby on your Mac, you can get it here.

    http://rubyinstaller.org/

    To make sure that the ruby programming language is installed on your machine run the following code on Terminal. (Finder > Applications > Terminal) Or (Applications > Utilities > Terminal)

    ruby -v

    Example of successful output:

    2. Create a download folder on your desktop and place downloadUploadedFiles.rb JotForm.rb files to that folder. You can get these files here: https://github.com/jotform/api-use-cases/tree/master/ruby-uploaded-files-downloader

    3. Open the Terminal app again.Then, go to the folder with downloaded scripts by typing the highlighted code below. In our example the files are on /Users/yourusername/Desktop/download  folder path, so the command is:

    cd /Users/yourusername/Desktop/download

    and then followed by the following command.

    ruby downloadUploadedFiles.rb {apiKey} {formID

    Where {apiKey} is your JotForm Account API Key and {formID} is the ID of the form in question.

    Let us know if you come across any issues.

    Regards!