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.

Uploaded file to lowercase letters

  1. haakonflender
    Member

    Hi!
    I have made a form where users can upload a video. I need it to write the filename in lowercase letters because of a convertion bach script that stops working if there is UPPERCASE letters in the filename.

    Where can I modify the upload function?

    Thanks for helping me out.

    Posted 11 years ago on Saturday May 12, 2012 | Permalink
  2. David Peralty

    Hi there, you'll want to use the following hooks and PHP scripts:

    http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter
    http://php.net/manual/en/function.rename.php
    http://php.net/manual/en/function.strtolower.php

    This is more complicated that you might have thought because you actually need to rename the file for it to work correctly. Because in most hosting environments, This.mov is not the same as this.mov.

    Posted 11 years ago on Monday May 14, 2012 | Permalink
  3. i made a post to help with this:
    http://www.gravityhelp.com/forums/topic/file-upload-location-and-name#post-76119

    Posted 11 years ago on Tuesday September 18, 2012 | Permalink
  4. Thanks again @bristweb.

    Posted 11 years ago on Tuesday September 18, 2012 | Permalink

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