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.

file upload secure location

  1. Is it possible to change the file_upload filter to upload to a folder 'above the site' in a secure location that is not acessable fromt he web but would be later via FTP? And if so what would the syntax be?

    Thank You

    Posted 13 years ago on Monday June 4, 2012 | Permalink
  2. David Peralty

    I think you are looking for:
    http://www.gravityhelp.com/documentation/page/Gform_upload_path

    Posted 13 years ago on Monday June 4, 2012 | Permalink
  3. Ok, I know that page, but pardon my lack of php programming experience, but how would I format it for posting to a folder above the site, ie above the public_html folder in my servers case? Can that be done at all?

    Posted 13 years ago on Monday June 4, 2012 | Permalink
  4. David Peralty

    Sorry, you are correct, the current settings within the path hook wouldn't allow it to be above the url structure of your site. You could using
    http://www.gravityhelp.com/documentation/page/Gform_entry_created
    or
    http://www.gravityhelp.com/documentation/page/Gform_post_submission

    Hook in and write your own PHP script to move the file to where you want it to be. The data in the entry would also have to be changed if you wanted to store the upload location anywhere.

    Posted 13 years ago on Tuesday June 5, 2012 | Permalink