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.

Get uploaded file URL for Custom Field value

  1. Hi! I'm using a form with Post Fields so users can post submission on my website and all works out very well except 1 thing is missing in the automatic process.

    Users can upload an image and I have some custom resize code to scale it down to a custom size, like the code below. This all works well.

    http://www.pastie.org/4001799

    I want to populate a Custom Field with the link to that specific file (http://...............312x225.jpg). I guess I need to fix this with the after submission hook, but no idea on where to start. Anyone have an example to point me in the right direction? I only need the image URL, not the whole <img embed code.

    Many thanks!

    Posted 11 years ago on Thursday May 31, 2012 | Permalink
  2. David Peralty

    Have a look at the following forum thread, it should get you close, if not all the way.
    http://www.gravityhelp.com/forums/topic/manipulating-url-of-uploaded-file

    Posted 11 years ago on Thursday May 31, 2012 | Permalink