Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

[Solved] Link of upload file in email
  • caesar33 June 2011

    Hello !

    first, great job !
    My question is on the upload file. Indeed, when i receive the mail, i would like a link for acceed at the repertory where the file upload is.
    i have changed a little bit the code in the form_processor.php

    function get_file_name($element) {
    return(($_GET[$element.'_name'])?'<a href="mysite.com/uploads/'.$element.'/">see</a>'.ltrim($_GET[$element.'_name']):$_GET[$element]);
    }


    but, i am blocked because the name of file is not include.
    Have you a solution for this ?

    Thank you.

  • caesar33 June 2011

    Hello,

    any idea ?

  • Support June 2011

    Hi. Thanks for sharing your code!


    let us see the issue with care, sure we will find a solution


  • Support June 2011

    Please try this:



    function get_file_name($element) {

    $name_and_size =
    $_GET[$element.'_name'];

    $name = substr(
    $name_and_size,0,strpos($name_and_size,','));

    return(($_GET[$element.'_name'])?'<a href="mysite.com/uploads/'.$element.'/'.$name.'">see</a> '.ltrim($_GET[$element.'_name']):$_GET[$element]);
    }

  • caesar33 June 2011

    Wonderful !!

    It works !!

    Also, I change the code in the doajaxfileupoald.php line 59 :
    $msg .= "" . $prefix.$_FILES[$_GET['id']]['name']     I delete the space between "" at $msg .=" ", cause the redirection contains a space.

    Thank you.

  • Support June 2011

    Great work!