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.

Upload images directly to gallery

  1. Gomle
    Member

    I would like to have my users upload an image, and then automatically implement this image to the postgallery - same post where the upload form is visible.

    I can see from this post, that you planned to have this functionality ready in 2012:
    http://www.gravityhelp.com/forums/topic/users-upload-images-to-existing-post

    Is it, or is there something I can do to make it happen. (Or, if it's too much work since I'm not a programmer) is there any ways to make this semi-automatic?

    Posted 11 years ago on Friday April 5, 2013 | Permalink
  2. This feature has not been added to Gravity Forms.

    It will require some PHP to add an uploaded image to the gallery where the form was embedded. You can use the gform_after_submission hook http://www.gravityhelp.com/documentation/page/Gform_after_submission to attach the uploaded image to the post. Your code can use the WordPress function wp_insert_attachment http://codex.wordpress.org/Function_Reference/wp_insert_attachment

    That way, once the image is uploaded, it will be attached to the post and will be output by the [gallery] shortcode automatically.

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink
  3. Gomle
    Member

    Thank you, although this doesn't actually help me at all - I'm not a programmer, and I have no clue on where to begin.

    Hope you will implement this feature in GF soon! :)

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink