how to remove a part of visible link!

loop4633@gmail.com 09 Dec, 2013
Hi guys, I try to send a link of my uploaded file to email but I can see:

Array
(
    [upload] => Array
        (
            [name] => 20131209131448_lcada.bmp
            [original_name] => lcada.bmp
            [path] => /var/www/html/components/com_chronoforms/uploads/clients/20131209131448_ltry.bmp
            [size] => 476574
            [link] => http://****/components/com_chronoforms/uploads/clients/20131209131448_ltry.bmp
        )

)


How I can see only: http://****/components/com_chronoforms/uploads/clients/20131209131448_ltry.bmp

Thank's in advance
GreyHead 09 Dec, 2013
Hi loop4633,

I'm not sure I understand your question :-(

What you have there is the Debug output. Use {upload.link} in a Thank You Page action to show the link there if that is what you need.

Bob
loop4633@gmail.com 09 Dec, 2013
Hi GreyHead thank you for your help, I create a form where i put file to upload and email, when i click submit it's send an email with a link to download resource but if in template of email I insert
 
<?php 
print_r2($form->files);
?>


it's print in email all of I write above, if I insert {upload.link} it's print in body mail {upload.link}. I could have printed in body email only the link to download the file
GreyHead 09 Dec, 2013
Hi loop4633,

If you want a link in the Email then you'd need to add the link HTML
<a href='{upload.link}' >Click here</a>
and you need to make sure that the Upload Files action is before the Email action.

Bob
loop4633@gmail.com 09 Dec, 2013
this is the result:
The requested URL /{upload.link} was not found on this server.

I don't understand but {upload.link} not function
GreyHead 09 Dec, 2013
Hi loop4633,

Is the Upload Files action before the Email action?

Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

Bob
loop4633@gmail.com 09 Dec, 2013
Data Array:

Array
(
    [option] => com_chronoforms
    [chronoform] => clienti
    [event] => submit
    [upload] => 20131209155722_lcad.bmp
    [nomeoperatore] => tester
    [emailoperatore] => test@gmail.com
    [emailcliente] => loop4633@gmail.com
    [oggetto] => test
    [input_submit_8] => Invia
    [c36e3c48bbbee0eae850f7f2c0a01c11] => 1
    [_PLUGINS_] => Array
        (
            [upload_files] => Array
                (
                    [upload] => Array
                        (
                            [name] => 20131209155722_lcad.bmp
                            [original_name] => lcad.bmp
                            [path] => /var/www/html/components/com_chronoforms/uploads/clienti/20131209155722_lcad.bmp
                            [size] => 476574
                            [link] => http://webshare/components/com_chronoforms/uploads/clienti/20131209155722_lcad.bmp
                        )

                )

        )

)

Validation error:

Array
(
)


Debug data:

 Upload routine started for file upload by : upload
/var/www/html/components/com_chronoforms/uploads/clienti/20131209155722_lcad.bmp has been uploaded successfully. 


this is my debug
GreyHead 10 Dec, 2013
Hi loop4633,

If you check the debugger code: the link will be {_PLUGINS_.upload_files.upload.link}

Bob
This topic is locked and no more replies can be posted.