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.
<br><br>Post edited by: Yaholo, at: 2007/11/01 21:27
<input name='Photo_of_Director' type='file' class='inputtext'>

Hi Yaholo,
That all looks OK to me - can you post a link to the form please?
Bob
That all looks OK to me - can you post a link to the form please?
Bob
Hi Yaholo,
Hmmm, that looks good too . . . scratches head . . .
Perhaps Max has a bright idea?
Bob
Hmmm, that looks good too . . . scratches head . . .
Perhaps Max has a bright idea?
Bob
Hi,
There is a bug in the J1.5 version, line 530 at chronocontact.php:
Please make it :
This will do it๐
Cheers
Max
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
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...
$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...
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
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
This topic is locked and no more replies can be posted.