file attachment / upload issue

drb 19 Aug, 2008
because I could not get V3 and CB to work together I reverted back to v2.5 RC3 9(last release in v2).

I simply copied the form code from
http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=5&t=10662
and pasted on to html. enabled file uploads all 4 fields, set permissions to upload folder to 777.

but when I used the form, I don't see any attachment. it is not present in upload folder, nor in the data in backend nor in the email as attachment.

I just get an email without attachment.

whhat am I doing wrong? please help....

drb
GreyHead 19 Aug, 2008
Hi drb,

Please check FAQ 29.

Bob
drb 19 Aug, 2008
Thanks Greyhead,
I got it to work by going through FAQ.

Two things I wasn't able to do, but it still worked (partially). Those are:
1. Check in your configuration.php file that there is a value set for $mosconfig_fileperms; if it is blank or set to '0000' please set it to 0644.
- is this php for joomla. I checked. that code was not there. so couldn't alter anything.

2. Check that "chmod new files" is ticked in Joomla's Global Configuration.
- I couldn't find such option in the backend. However, there is 'restrict upload' which is set to 'yes'. should I change that to 'no'?

I recieved email with attachment, however, the attachment doesn't show up
1. in the backend - show data. It is empty. attachment filed is present.
2. upload folder - is empty (except with some index.html). Its permissions are 777.


NOTE: it worked. After a while, I saw files in the upload folder. However, during that time, I added the above code to configuration.php file. Did it work because of that ?
Max_admin 19 Aug, 2008
Hi drb,

no, it didnt work bcoz of adding that code to configuration.php since this is a Joomla 1.0.x code, please remove it!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
drb 19 Aug, 2008
Hello Max,
Sorry, another issue.
Why is the attachment data not seen in the backend?
When I clicked 'show data'. The records show empty row for attachment and doesn't indicate what document was attached to that record.
However attachments are present in upload folder and gotten via email as well.

drb
Max_admin 20 Aug, 2008
well, this is a long story and needs some file hack which can be found at many posts here, it has been fixed at V3.0!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
drb 20 Aug, 2008
Sorry, my search could not find the hack in the forum. Could you please point me?
Max_admin 22 Aug, 2008
Hi drb, search the forums for $_FILE , this is a key word in the hack!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.