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.

File Upload Message/Loading Image

  1. matsilva
    Member

    Hello. I wanted to find out which file I can edit to add to the file upload message so the user filling out the form can read "Please be patient while we upload your image" because the spinner just doesn't see adequate for the average user.

    Posted 12 years ago on Monday June 13, 2011 | Permalink
  2. There isn't anything you can edit to make it do this. What you want is much more complex than a quick edit of a file. Gravity Forms uses the standard File Upload field, it doesn't use any kind of Flash or AJAX based uploader. We do plan on enhancing this in the future with progress bar, etc. but it will require us to implement a more advanced file upload feature using AJAX and/or Flash to accomplish this. It is on our to do list.

    Posted 12 years ago on Monday June 13, 2011 | Permalink
  3. matsilva
    Member

    Where is the init for the .gif spinner? I am sure I can hack a line of text next to that while .gif spinner is loading. Is it in the javascript?

    Posted 12 years ago on Tuesday June 14, 2011 | Permalink
  4. It's going to be related to form_display.php. We don't support changes to the core plugin code and only advocate customizations through the use of hooks and filters. So if you change the core plugin, just be careful you don't mess anything up.

    Posted 12 years ago on Tuesday June 14, 2011 | Permalink
  5. matsilva
    Member

    Thanks.

    I see it is added with filters currently. No filter / hook to add for a line of text?

    Posted 12 years ago on Tuesday June 14, 2011 | Permalink
  6. matsilva
    Member

    Or as I look at the form can't there just be a replacement for the "No file chosen" text while the file uploads in that same area?

    Posted 12 years ago on Tuesday June 14, 2011 | Permalink
  7. The "No file chosen" text is rendered by the browser and isn't customizable. It's message and interface is browser specific and varies from browser to browser. There isn't much control over this functionality due to the way it works. It's not like a flash or ajax based file uploader. It's exclusively controlled by the browser itself.

    There is a hook for changing the spinner icon. You could create an image that consists of text rather than a spinner. But it needs to be an image, not plain text. The hook is here:

    http://www.gravityhelp.com/documentation/page/Gform_ajax_spinner_url

    Posted 12 years ago on Tuesday June 14, 2011 | Permalink
  8. matsilva
    Member

    Ahh gotcha. Thanks for the info. This way I don't hack the core.

    Posted 12 years ago on Tuesday June 14, 2011 | Permalink