PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Pass uploaded file location

  1. michaelbyrd123
    Member

    Maybe I'm missing something obvious but I've got a form with two file upload spots for uploading CSV's. I want to redirect it to a processing page after upload that receives the file location for the uploaded CSV's so I can do a load infile local into a table I have set up to receive the CSV data.

    I don't see my upload fields showing up in the Pass Field Data via Query String area. Is there a way to do this within gravity forms or will I need to set up a custom form?

    Posted 13 years ago on Wednesday December 15, 2010 | Permalink
  2. michaelbyrd123
    Member

    I guess what I'm really asking is can this be passed in the query string, or should I just pass the entry ID and then grab the URLs directly from the database.

    Posted 13 years ago on Wednesday December 15, 2010 | Permalink
  3. File Upload fields should appear in the Form Field Variable drop down for building a query string redirect just like any other field. If they do not, then save your form and continue editing and try again.

    To pass the data via the confirmation redirect you edit the Form Settings, select the Confirmation tab and choose Redirect as the confirmation. Type in the URL you want to redirect to when the form is submitted, and then setup the query string options using the form field variables. Here is an example:

    http://grab.by/7V4m

    Your form field should appear in the Insert Form Field drop down.

    Posted 13 years ago on Wednesday December 15, 2010 | Permalink
  4. michaelbyrd123
    Member

    Ya, all I had to do was save the form and continue editting and it popped up just fine. Awesome!

    Posted 13 years ago on Wednesday December 15, 2010 | Permalink