Filepicker widget: Amazon S3 integration uploading all files in one folder?

  • Profile Image
    Mattbrant
    Asked on August 13, 2015 at 04:26 AM

    I've set up the filepicker widget on my form to collect customers images, but all of the entries into my Amazon s3 bucket get saved into the same folder. I was wondering if there is a way to save each customers uploads into separate folders in my s3 bucket?

     

    any help would be appreciated.

    Thanks,

    Matt 

  • Profile Image
    Sammy
    Answered on August 13, 2015 at 05:54 AM

    You can use the submission if so as to create unique folders for each submissions

    try adding the {id} tag in your upload path as follows

    Lets us know if this works

     

  • Profile Image
    Mattbrant
    Answered on November 02, 2015 at 11:43 AM

    Hi Sammy,

    I just tried this and it has not worked unfortunately, it does create a file in my S3 called {id} but it then saves all of the images from all submissions into this folder! Do you have any other suggestions?

     

  • Profile Image
    Charlie
    Answered on November 02, 2015 at 02:58 PM

    Hi,

    If I am not mistaken, you would like to have one folder for each submission, this means customer 1 will have it's own folder will all of the file uploads, is that correct?

    You might be missing the "/" on the end of the path.

    Could you try this one instead:

    JotForm/{formID}/{id}/

    It will then create a folder with the submission ID. Let us know if that helps.

  • Profile Image
    Mattbrant
    Answered on November 03, 2015 at 04:59 AM

    Hi Charlie, that's exactly what I want to happen.

    I tried adding the "/" at the end and I still get the same result, it just creates a folder called ID and then all submissions get saved to that folder from different customers.

    It also uploads all of the pictures to the S3 bucket before the submit button is pressed on the Jotform, not sure if that has anything to do with it but here is the link to the form:

    https://form.jotformeu.com/Mattbrant/uploader

    Here is the image of the path in my S3 bucket viewer:

  • Profile Image
    Charlie
    Answered on November 03, 2015 at 08:25 AM

    Apologies for the inconvenience.

    I do not have an Amazon Simple Storage account to test this, but I will forward this to our developers to have it checked. So basically, the uploaded files are being uploaded on only one folder? I'm not sure if this is how the Filepicker and Amazon S3 was designed.

    We will update you on this thread when we receive confirmation from our developers.

  • Profile Image
    Mattbrant
    Answered on November 03, 2015 at 08:48 AM

    Yes that's correct Charlie, I'll keep an eye out for updates on this thread, thank's for your help.

    Matt

  • Profile Image
    Charlie
    Answered on November 03, 2015 at 09:56 AM

    Thank you for the confirmation and understanding.

    I'll inform you as soon as we get an update on this.

  • Profile Image
    widgets
    Answered on November 06, 2015 at 02:17 PM

    Hi, there is no such thing as {id} keyword or if you think this will create a named folder like {formID}. It will just end up creating another folder called {id} inside formid({formID}) folder. I'm sorry but only the special string {formID} is available.

    We will look into this and provide you a better way for nesting your folders for each every submission. We'll update this thread once we have something.

    Thanks,
    Widget Team