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.

Show Uploaded Files

  1. I am trying to allow viewers to upload PDF files to an User that is registered on our site.

    So if you were to go to: http://mysite.com/author/myname There would be a file upload form. Once the file has been uploaded I would like to be able to show all of the files that have been uploaded on this authors page.

    Am I missing something on how to display the files that have been uploaded?

    Also is there a way to restrict the file uploads to be completely uploaded until the Admin approves them?

    Posted 9 years ago on Wednesday June 1, 2011 | Permalink
  2. Hi Dan,

    Gravity Forms does not handle how any of the post date (including file uploads) are displayed. It sounds like you're just wanting to display attachments. This might be helpful:

    http://www.wprecipes.com/how-to-show-wordpress-post-attachments

    Currently there is no way to approve files before they are fully uploaded. You can prevent them from displaying on the site if they are attached to a post by setting the default post status to "draft" or "pending".

    Posted 9 years ago on Wednesday June 1, 2011 | Permalink
  3. David -

    Thanks, but I don't think that is going to work in my case.

    I have a file upload form (not a front end post file upload form) that is on the author template file. So when you go to http://mysite.com/author/myname. I can upload a form to the member on that page.

    I would then need to find a way to display the files that were uploaded to that specific author page. And show the link to it.

    Is there any way to do something like this?

    Posted 9 years ago on Thursday June 2, 2011 | Permalink
  4. Hi Dan,

    If you're uploading them simply as file uploads the only way I can think of to retrieve them by the author page from which they were submitted is a) to have a hidden field on the submission form that is dynamically populated with the author page you are viewing and b) writing a custom query to get all entries where where the form ID is the submission form ID and the value of the hidden field is the author page you are requesting.

    Rough translation, this is not possible out of the box; however, if you have any experience with PHP it is feasible to accomplish.

    Posted 9 years ago on Thursday June 2, 2011 | Permalink
  5. Great thanks David.

    I just did something similar using an email form on the author page that collects the current authors email address into a hidden field, and then used the gforms_reroute hook to send to the email that was collected into the hidden field.

    I will post when I have it figured out.

    Posted 8 years ago on Monday June 6, 2011 | Permalink