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.

Image Upload via URL

  1. matsilva
    Member

    Two part question:

    I am looking to upload an image via a url, specifically Instagram. Can we configure a custom image upload field in Gravity Forms to take a url to the image and download it from the url?

    Is is possible to display a small preview of the image url and/or uploaded image using the normal image upload field or custom field before submission?

    Thanks in advance for anyone that can share some info.

    Posted 12 years ago on Thursday June 21, 2012 | Permalink
  2. David Peralty

    You would have to custom code all of this using Gravity Forms hooks, as these features don't currently exist. We have extensive documentation on our available hooks, and if you know PHP, you could write the functions to make this happen.

    Posted 12 years ago on Thursday June 21, 2012 | Permalink
  3. matsilva
    Member

    Would it be possible to get pointed in the right direction to at the very least configure the image upload to take on image urls? I have been searching a lot for someone or a website that has done this using the Gravity Forms hooks but I haven't seen anything specifically dealing with urls.

    Posted 12 years ago on Thursday June 21, 2012 | Permalink
  4. David Peralty

    Well, you wouldn't use the image upload field. You would use a single line input. Someone would copy&paste the URL of the image they want into that field.

    Upon submit of the first page, you would run a script to grab the image, copy it local to your server, and then they would go to a second page of the form and be able to see the thumbnail.

    Have a look at http://gravitywiz.com/2012/04/30/simple-pre-submission-confirmation/ for showing a confirmation page (this is where the thumbnail would show up).

    You would want to look into CURL and read through some of our documentation on hooks.

    Posted 12 years ago on Thursday June 21, 2012 | Permalink