Support » Plugin: CF7 Google Sheets Connector » Images links in googlesheet

  • Resolved mistergraphx

    (@mistergraphx)


    Hello and thanks for your plugin,

    We have install googlesheet connector pro on our website, when testing links in googlesheet for images, the paths were not complete and return a 404 error.

    It seems the array returned by wpcf7 for file upload as changed, I’ve found a workaround by modifying these lines in class-gs-service.php :

    
    $file_name		 = basename( $path[0] );
    $destination		 = $upload[ 'path' ] . '/' . $time_now . '-' . $file_name;
    $destination_url	 = sprintf( '%s/%s', $upload[ 'url' ], $time_now . '-' . $file_name );
    $uploads_stored[ $name ]	 = $destination_url;
    
    copy( $path[0], $destination );

    it’s just a hack, multiple file upload ‘ll certainly not work 😉

    Have a nice day

    • This topic was modified 2 months, 1 week ago by mistergraphx.
    • This topic was modified 2 months, 1 week ago by mistergraphx.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author westerndeal

    (@westerndeal)

    Hi @mistergraphx,

    Its a known issue and we have already fixed it.

    The updates would be out today.

    Thanks
    Abdullah

    Thread Starter mistergraphx

    (@mistergraphx)

    Thanks for your quick answer, i’ve googling around this with no success, sorry for the multiplication of threads ^^

    Thanks for the work and update.

    calduchoweb

    (@calduchoweb)

    Hello. I have the plugin updated to the latest version 4.6, but the name of the images still appear instead of the url. Do I need to change something to make it work?
    Thanks.

    Plugin Author westerndeal

    (@westerndeal)

    Hi @calduchoweb,

    As you are using free version it just saves the image name to the Google Sheet. Reason is that CF7 just saves files for temporary bases to their folder until email is sent.

    For Pro version we copy the files from the temporary folder to our custom created folder and then saves URL to the Google Sheet.

    Hope this helps.

    Thanks
    Abdullah

    calduchoweb

    (@calduchoweb)

    Thanks for the reply! I have already bought the Pro version, but it always overwrites the second row. Does not add new rows in new sends…

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.