WordPress.org

Support

Support » Plugins and Hacks » File upload name

File upload name

  • Hi guys,

    On my website I use contact form 7 with file upload. The contact form sends one email to notify me of a file upload. The second email is send to an xx@sendtodropbox.com email adress, so the file upload is sent to my dropbox.

    Here is the problem:
    If user 1 sends an image/video file it’s in my dropbox, great.
    If user 2 sends an image/video file with the same filename, it overwrites the file of user 1.

    Is it possible to change the filename if it already exists? So if user 1 upload image.jpg, and user 2 does the same, it will be something like image-1.jpg?

    Thanks in advance

    http://wordpress.org/extend/plugins/contact-form-7/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi
    Participant

    @takayukister

    If user 2 sends an image/video file with the same filename, it overwrites the file of user 1.

    This sounds like a matter of sendtodropbox.com side. Why not ask their support?

    Well, because they just send the file to a dropbox account via email.

    My question is actually: how to change the filename of a file upload with contact form 7?
    For instance: image.jpg would change into 29062013-2348.jpg (time format or something else with unique characters)

    Plugin Author Takayuki Miyoshi
    Participant

    @takayukister

    This is not possible by default. If you are familiar with WordPress hook, try utilizing wpcf7_mail_components filter. The filter is used in includes/classes.php.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘File upload name’ is closed to new replies.