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.

Post Images not added to Media Library

  1. I am using Post Image fields. When testing, images are not added to the Media Library. They are uploaded to the uploads/gravity-forms folder rather than to just the uploads folder. There are also fields for Post Title and Post Body.

    In your documentation you write:
    "The Post Image field allows users to upload an image that is added to the Media Library and Gallery for the post that is created. This field works in tandem with the other Post fields to allow you to create a form that can generate post data from a user submission."

    The uploads folder has the correct permissions.

    I am using 1.5.beta3.4

    I have read through the forum and have not found an answer to this particular question.

    You can see the form.
    http://www.haring.com/kh_foundation/authentication/authentication-form

    Thank you for your time.

    Posted 13 years ago on Wednesday December 22, 2010 | Permalink
  2. This is difficult to debug without access to your WordPress admin. If you can send us a WordPress admin login for this site via our Contact Us form we can take a look and see what is going on.

    All files are stored initially in the gravity_forms upload folder, and if it is a post image it is then copied from this folder and processed by the media library. It sounds like it's unable to copy the file in order to process it.

    Posted 13 years ago on Wednesday December 22, 2010 | Permalink
  3. Mine are doing the same things. Instead of uploading to the folder I have specified in the media settings, they are uploading to folders inside of the gravity forms folder and then separated to different folders based on year and month.

    Posted 13 years ago on Thursday December 30, 2010 | Permalink
  4. @nicholas Please send us a WordPress admin login for this site via our Contact Us form and we will take a look.

    Posted 13 years ago on Thursday December 30, 2010 | Permalink
  5. I'm also having this issue, but only sometimes. I realize that's a terrible report but I'll continue testing on my end to try and get some consistency out of the failures.

    Posted 13 years ago on Thursday January 27, 2011 | Permalink
  6. I should have realized this earlier, the problem seems to arise when uploaded files have a space in the file name.

    Posted 13 years ago on Thursday January 27, 2011 | Permalink
  7. Quick fix that did the trick for me:

    Version 1.4.5 in forms_model.php line 1258
    Version 1.5RC3.10 in forms_model line 1543

    $file_name = basename( sanitize_title( $file_info["basename"] ), "." . $extension);

    As it stands, the extension will be appended (e.g. 'test-test-jpg.jpg') but for my purposes that's fine. Hope that helps!

    Posted 13 years ago on Thursday January 27, 2011 | Permalink
  8. Cross-posting this related topic:

    http://forum.gravityhelp.com/topic/fileimage-upload#post-17088

    Posted 13 years ago on Thursday January 27, 2011 | Permalink
  9. When a user uploads an image, where can I find it? Where is the image stored and how can I get to it?

    Posted 13 years ago on Monday January 31, 2011 | Permalink
  10. If you're uploading form the Post Image field, it is stored in the post's media gallery. Otherwise it is stored something like this:

    \wp-content\uploads\gravity_forms\1\2010\10

    1 being the form ID
    2010 being the year the image was submitted
    10 being the month the image was submitted

    Posted 13 years ago on Tuesday February 1, 2011 | Permalink
  11. I'm running Version 1.4.5
    Where can I edit the css? Where is it located?

    Posted 13 years ago on Tuesday February 1, 2011 | Permalink
  12. I found my files in the gravity_forms upload folder and noticed the files have spaces in the file names. So, I was able to locate the forms_model.php...

    I changed:
    $file_name = basename($file_info["basename"], "." . $extension);
    To:
    $file_name = basename( sanitize_title(

    I'll see if it works.

    Posted 13 years ago on Tuesday February 1, 2011 | Permalink
  13. bfeldman
    Member

    I am also looking for uploaded images in the "post's gallery" but not finding them.

    I have tested two kinds of uploads: file uploads and post image uploads.

    Both put the images into the
    /wp-content/uploads/gravity_forms/1/2011/10
    folder, but when editing the post, I can NOT access them via the Media Library.

    What am I missing?

    Many thanks.

    Posted 12 years ago on Wednesday October 12, 2011 | Permalink
  14. @bfeldman Double check that you are using the Post Image field and not a File Upload field. Only the Post Image field adds images to your media library. The File Upload field or the Custom Field file upload do not.

    Also in the future please open up a new support request. This thread is 8 months old and nobody else is experiencing this issue so while your issue sounds like it is the same, it is likely not the same as a lot has changed in the code over the last 8 months.

    Posted 12 years ago on Wednesday October 12, 2011 | Permalink

This topic has been resolved and has been closed to new replies.