Hello,
I'm using Chronoforms V3 with the upload fonction.
It woks like a charm after getting the fix that I downloaded from the forum.
But I have a small problem
How could I make the component not saving the files on my server but just sending them directly in the Email as a file attached
Don't need to rename files and don't need to keep them on the server because it will cause an overload
Best regards
Amorino
I'm using Chronoforms V3 with the upload fonction.
It woks like a charm after getting the fix that I downloaded from the forum.
But I have a small problem
How could I make the component not saving the files on my server but just sending them directly in the Email as a file attached
Don't need to rename files and don't need to keep them on the server because it will cause an overload
Best regards
Amorino
Hi Amorino,
We've talked about this before. I think the answers were either (a) to add a cron job to delete all saved files after a few days or (b) to add code to delete the file after the email is sent (this has the potential problem that if the email goes astray then the file is lost).
Bob
We've talked about this before. I think the answers were either (a) to add a cron job to delete all saved files after a few days or (b) to add code to delete the file after the email is sent (this has the potential problem that if the email goes astray then the file is lost).
Bob
Hello BOB
Thank you for the answer
Could you please tell me which words should I use in the search form to find that discussion in which you explain how to do this?
I tried some words but I didn't find nothing in this way
Best regards
Amorino
Thank you for the answer
Could you please tell me which words should I use in the search form to find that discussion in which you explain how to do this?
I tried some words but I didn't find nothing in this way
Best regards
Amorino
hello Bob,
thank you very much I looked to that discussion and I found this code
It's after said that this is not a perfect code.
Is there a security problem do you think?
Best regards
Amorino
thank you very much I looked to that discussion and I found this code
<?php
$ruta = '/path/to/the/folder/*';
$arxiu = glob($ruta);
array_map('unlink', $arxiu);
?>
It's after said that this is not a perfect code.
Is there a security problem do you think?
Best regards
Amorino
Hello Bob,
it works like a charm and so it lets the server empty.
Best regards
Amorino
it works like a charm and so it lets the server empty.
Best regards
Amorino
This topic is locked and no more replies can be posted.