hi I'm new to chronoengine
my client is running joomla1.5.4
and ChronoForms V2.5 J1.5 RC3.1 Licensed
my form is quite simple and all the other fields are working fine but i'm only getting the file name and no uploaded image??
i have:
this is my input code:
I have added the enctype="multipart/form-data" in the Form Tag Attachment box on the General Tab for your form.
i have Enable uploads with the following settings:
Field names & allowed Extensions for each: pic_1:jpg|gif|png
Max allowable size: 2000KB
Min allowable size:1KB
this is where i have been looking for the file /com_chronocontact/upload/
what am i doing wrong?
my client is running joomla1.5.4
and ChronoForms V2.5 J1.5 RC3.1 Licensed
my form is quite simple and all the other fields are working fine but i'm only getting the file name and no uploaded image??
i have:
this is my input code:
<input name="pic_1" type="file" id="pic_1" size="20" />
I have added the enctype="multipart/form-data" in the Form Tag Attachment box on the General Tab for your form.
i have Enable uploads with the following settings:
Field names & allowed Extensions for each: pic_1:jpg|gif|png
Max allowable size: 2000KB
Min allowable size:1KB
this is where i have been looking for the file /com_chronocontact/upload/
what am i doing wrong?
Hi LeeFish,
The form looks OK and you are checking the correct folder for uploads.
Please check that the upload folder is writeable. There are a couple of other things to check - they are mentioned in the File Upload tutorial in the Downloads area here (the tutorial is for CF v3,0 but the changes are fairly minor).
Bob
The form looks OK and you are checking the correct folder for uploads.
Please check that the upload folder is writeable. There are a couple of other things to check - they are mentioned in the File Upload tutorial in the Downloads area here (the tutorial is for CF v3,0 but the changes are fairly minor).
Bob
thanks for the quick response, i am very grateful for your assistance.
the upload folder /com_chronocontact/upload/ is writeable
php information
file_uploads and check this is ON
upload_max_filesize is 20M
it would appear everything else is as the #6 Adding file upload to a form.pdf suggests
any other ideas?
cheers
Lee
the upload folder /com_chronocontact/upload/ is writeable
php information
file_uploads and check this is ON
upload_max_filesize is 20M
it would appear everything else is as the #6 Adding file upload to a form.pdf suggests
any other ideas?
cheers
Lee
I could be barking up the wrong tree but i was reading this post it's from 2007 so i think what it's talking about has probably been fixed but i'm desperate.
http://www.chronoengine.com/forums.html?cont=posts&f=2&t=3295
which lead me to look at the auto generated code:
is this how it should be?
http://www.chronoengine.com/forums.html?cont=posts&f=2&t=3295
which lead me to look at the auto generated code:
<?php
$database =& JFactory::getDBO();
srand((double)microtime()*10000);
$inum = "I" . substr(base64_encode(md5(rand())), 0, 16);
$database->setQuery( "INSERT INTO #__chronoforms_5 VALUES (
'' , '".$inum."','". date('Y-m-d')." - ".date("H:i:s")."', '".$_SERVER['REMOTE_ADDR']."' , '".JRequest::getVar('contact_first_name','', 'post', 'string', '' )."' , '".JRequest::getVar('contact_last_name','', 'post', 'string', '' )."' , '".JRequest::getVar('mobile_number','', 'post', 'string', '' )."' , '".JRequest::getVar('email','', 'post', 'string', '' )."' , '".JRequest::getVar('contact_address','', 'post', 'string', '' )."' , '".JRequest::getVar('suburb','', 'post', 'string', '' )."' , '".JRequest::getVar('state','', 'post', 'string', '' )."' , '".JRequest::getVar('postcode','', 'post', 'string', '' )."' , '".JRequest::getVar('text','', 'post', 'string', '' )."' , '".JRequest::getVar('pic_1','', 'post', 'string', '' )."');" );
if (!$database->query()) {
echo "<script> alert('".$database->getErrorMsg()."'); window.history.go(-1); </script>
";
}
?>
is this how it should be?
Hi LeeFish,
The AutoGenerated code looks Ok to me - it's executed after the file uploads so shouldn't have any effect on that step in the process. Have you checked your server logs?
Please add this snippet to the OnSubmit After box and let us know what the result is - it should show the uploaded file details.
Bob
The AutoGenerated code looks Ok to me - it's executed after the file uploads so shouldn't have any effect on that step in the process. Have you checked your server logs?
Please add this snippet to the OnSubmit After box and let us know what the result is - it should show the uploaded file details.
<?php
echo $_FILES;
?>
Bob
Hi LeeFish,
Sorry - sloppy posting on my part, please make that:
Bob
Sorry - sloppy posting on my part, please make that:
<?php
print_r($_FILES);
?>
to get the array contents.Bob
HI LeeFish,
In that case nothing has uploaded from the form itself - so we have the problem pinned down a bit more.
[sendfb][/sendfb]
Bob
In that case nothing has uploaded from the form itself - so we have the problem pinned down a bit more.
[sendfb][/sendfb]
Bob
Hi LeeFish,
I'm baffled for the moment - your form looks fine - except that the Max and Min file size limits need to be just numbers with no 'KB'.
But I can't get it to upload a file for me, I made a simple version with just the file upload field and an input button and that won't work in FireFox or IE7 - but works fine in Google Chrome . . . that reminds me about a IE problem with spaces in file paths - I wonder if that's it.
Bob
I'm baffled for the moment - your form looks fine - except that the Max and Min file size limits need to be just numbers with no 'KB'.
But I can't get it to upload a file for me, I made a simple version with just the file upload field and an input button and that won't work in FireFox or IE7 - but works fine in Google Chrome . . . that reminds me about a IE problem with spaces in file paths - I wonder if that's it.
Bob
Hi, where do you have this form online ?
Max
Max
Max,
I am having the same problem trying to upload a doc I see the filename in the debug but no files gets uploaded.
Has anyone found a solution to this problem?
Joe
I am having the same problem trying to upload a doc I see the filename in the debug but no files gets uploaded.
Has anyone found a solution to this problem?
Joe
This topic is locked and no more replies can be posted.