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

  • Mattbrant
    Asked on August 13, 2015 at 4: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 

  • Sammy
    Replied on August 13, 2015 at 5: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

    Filepicker widget: Amazon S3 integration uploading all files in one folder? Image 1 Screenshot 20

    Lets us know if this works

     

  • Mattbrant
    Replied on November 2, 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?

    Filepicker widget: Amazon S3 integration uploading all files in one folder? Image 1 Screenshot 20 

  • Charlie
    Replied on November 2, 2015 at 2: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.

  • Mattbrant
    Replied on November 3, 2015 at 4: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:

    Filepicker widget: Amazon S3 integration uploading all files in one folder? Image 1 Screenshot 20

  • Charlie
    Replied on November 3, 2015 at 8: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.

  • Mattbrant
    Replied on November 3, 2015 at 8:48 AM

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

    Matt

  • Charlie
    Replied on November 3, 2015 at 9:56 AM

    Thank you for the confirmation and understanding.

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

  • widgets Jotform Support
    Replied on November 6, 2015 at 2: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