Upload file but don't attacht to email

MikeyMike 27 Feb, 2009
Hi,

I am creating a form that will enable users to upload a file that is too big to email (<10MB) as an easy replacement for ftp functionality.
It is working fine but I need an email to inform me that there is a new upload. If I enable email results, than the file is also attahced to the email that will then bounce because it i too large.

How can I let chronoengine upload the file (to the default directory) and send an email, but then send the email without the uploaded and stored file?

Thanks in advance,
Maickel
GreyHead 27 Feb, 2009
Hi MikeyMike,

Try this in the OnSubmit Before box
<?php
$attachments = array();
?>

Bob
MikeyMike 27 Feb, 2009
Thanks!

your suggestion is working fine...

Have a nice weekend!

Maickel
MikeyMike 27 Feb, 2009
One other issue is that I don't see an error if I try to upload an extension that is not allowed.
Is this an error in RC2. I have another site that is using version 3.0 stable where it does show the error.

the website where it is not working is http://www.epr-technopower.nl/nl/adresgegevens/test
GreyHead 27 Feb, 2009
Hi Maickel,

This could be becasue your template doesn't show system messages. I seem to recall this came up previously - but I'm not certain it was with the file upload errors.

Bob
Max_admin 27 Feb, 2009

One other issue is that I don't see an error if I try to upload an extension that is not allowed.
Is this an error in RC2. I have another site that is using version 3.0 stable where it does show the error.



yes its, just found it, I will fix it in RC3 which will be out hopefully by the end of the weekend!

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
MikeyMike 01 Mar, 2009
Good news!

Thanks for your quick replies.
I'll try the new version asap.

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