Support » Plugin: Contact Form 7 Dropbox » 2 feature requests…

  • I like the idea of this plugin and it works well.

    However I want to do two more things, maybe you can help me with that.
    1) I want to specify the upload location. I want the uploads to go to a specific folder, is that possible?
    2) I want to rename the files, to include the submission id in the name. Is that possible?

    I am happy to do some programming on this one.

Viewing 15 replies - 1 through 15 (of 15 total)
  • filename solved:

    jQuery(document).ready(function() {

    function wpcf7_dropbox_mailsent_handler() {
    document.addEventListener( ‘wpcf7mailsent’, function( event ) {
    form = wpcf7_dropbox_forms [ event.detail.contactFormId ];

    if ( form.access_token && form.file_input ) {
    var accessToken = form.access_token;
    var dbx = new Dropbox({ accessToken: accessToken });
    var fileInput = document.getElementById(form.file_input);
    var file = fileInput.files[0];
    var location = form.folder_location;
    if(file) {
    dbx.filesUpload({path: ‘/’ + location +, contents: file})
    .then(function(response) {
    console.log(‘File uploaded!’);
    .catch(function(error) {
    return false;

    }, false );


    Please explain how i use your code. need to change the file name once its uploaded.

    Have you figured out how to make the file uploade to another folder?


    You can use this link to my custom plugin link
    I have added two extra fields: “target file name field ID” and “Folder location”.

    the first gives you the possibility to add the value of a field as a filename. In My case thats a counter giving me an incrementing ID. The latter gives the possibility to add a specific location within dropbox


    Thats perfect! but i can’t get that to work when others upload to my site. if I upload with my own computer it will work but not others.

    Hope you can help me.


    did you have the same problem with the original plugin?

    whats is your folder path?


    Yes i was the same problem with the original plugin.

    my path is “/Uploads”

    path is ok than, probably your access token is incorrect?


    yeah i was thanks!

    But i can’t get the file name to change. I want an input in the form “account number” to be the file name or a part of the file name if thats possible?

    give the field account number an id and fill that in the correct box on the dropbox tab.

    But look at the code you have to customize that anyway.

    I think they must transfer the plugin to you @tsjippy. I see the developer is not updating the plugin and your update is 2 weeks ago.

    Plugin Author Jay Swadas


    Check out Updated Version 1.2
    – Added “Dropbox Folder” field to upload file on specify dropbox folder.
    – Multiple file upload using multiple File Input Ids


    But this topic is not yet solved, auto-renaming files is not yet implemented

    >Added “Dropbox Folder” field to upload file on specify dropbox folder. — Jay
    Thank you for adding the field but how to know who sent the file when looking at a filename received in the specified Dropbox Folder? Could you consider automatically adding the sender’s name at the beginning of the filename?

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘2 feature requests…’ is closed to new replies.