Forums

Help Uploading files in Crono Forms for Joomla 1.5

Yaholo 02 Nov, 2007
What am I doing wrong? I cannot get files to upload at all. I know to look under the "uploads" directory in "com_chronocontact" but nothing is there. I also have file permissions set correct. Below is my code and settings.

<input name='Photo_of_Director' type='file' class='inputtext'>
<br><br>Post edited by: Yaholo, at: 2007/11/01 21:27
GreyHead 02 Nov, 2007
Hi Yaholo,

That all looks OK to me - can you post a link to the form please?

Bob
GreyHead 02 Nov, 2007
Hi Yaholo,

Hmmm, that looks good too . . . scratches head . . .

Perhaps Max has a bright idea?

Bob
Max_admin 02 Nov, 2007
Hi,

There is a bug in the J1.5 version, line 530 at chronocontact.php:

Please make it :

$upload_path = JPATH_BASE.'/components/com_chronocontact/upload/';


This will do it๐Ÿ™‚

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
gg4j 02 Nov, 2007
Hi Max set the line, instead of:
$upload_path = $mosConfig_absolute_path.'/components/com_chronocontact/upload/';


Files are uploaded fine, in the folder, but there's no track of the filename in the record of the sql table...
I mean the field matched to field type="file" is empty...

Why? Scratching head as well...
Yaholo 03 Nov, 2007
The fix worked! Thank you very much.
Max_admin 03 Nov, 2007
Thanks Yaholo, gg4j:

In order to have file name stored you will need to edit the autogenerated code alittle, find the $_POST['file_field_name'] and replace it with $_FILES['file_field_name']['name']

Cheers

Max
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.