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.

Seeking help / form to allow file submissions with restrictions

  1. Have project seeking to allow clients to submit text content for ads and images with them.
    Need to limit length of text and allow set number of image (e.g. 5). Seems do-able with GF.
    Wondering if GF can do the following: rename images submitted to the client name, and reject file if is does not meet minimum size/dimension (I know I can limit on maximum but want to make sure files meet minimum requirements), and then send files to the specific client folder on the server (to help keep organized. (Not sure where file uploads go via this form capability. They have about 500 clients who will do this every 2 months. If GF not solution, anyone have suggestion how to accomplish or if this is do-able?

    Posted 12 years ago on Saturday March 3, 2012 | Permalink
  2. Hi, MarkB,

    1. "Need to limit length of text" - Yes, this can be done. There is a Maximum characters setting for several of the fields and you can modify this in the admin.
    2. "allow set number of image" - There are two fields available for uploading files; File Upload and the Post Image field. You control how many of these fields are on the form. So, if you only want 5 uploaded per form post, you would only add 5 of these fields to the form.
    3. "rename images submitted to the client name" - this is possible, but you would need to use custom php code to change the name, along with some of the Gravity Forms hooks
    4. "reject file if is does not meet minimum size/dimension" - this can be done with custom code in the Gravity Forms "gform_validation" (http://www.gravityhelp.com/documentation/page/Gform_validation) hook
    5. "send files to the specific client folder on the server" - by default, file uploads to the WordPress upload directory in a subfolder called "gravity_forms", but the upload path can be changed using the Gravity Forms hook "gform_upload_path" (http://www.gravityhelp.com/documentation/page/Gform_upload_path)

    We can point you in the right direction on using the hooks and have some examples you can review.

    Let me know if you have additional questions.

    Posted 12 years ago on Monday March 12, 2012 | Permalink

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