Is it enough to add this code to my existing form to get a file attached?
The upload directory is set to 777
I tried, but I do not get the file on email, nor its in the upload dir.
The upload directory is set to 777
<div class="form_item">
<div class="form_element cf_fileupload">
<label class="cf_label" style="width: 150px;">Add a file</label>
<input class="cf_fileinput cf_inputbox" title="" size="20" id="file_0" name="file_0" type="file" />
</div>
<div class="cfclear"> </div>
</div>
I tried, but I do not get the file on email, nor its in the upload dir.
Hi finc,
Please check the file uploads how to PDF tutorial in our tutorials page here on the website, that should clear things, because its more than just the file field code.
Regards,
Max
Please check the file uploads how to PDF tutorial in our tutorials page here on the website, that should clear things, because its more than just the file field code.
Regards,
Max
Thanks Max,
I have done that so far as it is in the Tutorial.
Submitting the file, returns me a red box inside a 1.
Regards
Cem
I have done that so far as it is in the Tutorial.
Submitting the file, returns me a red box inside a 1.
Regards
Cem
Hi finc,
Is this the latest ChronoForms version 3.2?
If so there's a bug in the File upload code. Please see this post.
Bob
Is this the latest ChronoForms version 3.2?
If so there's a bug in the File upload code. Please see this post.
Bob
Yes I had to use that one V 3.2 09 Nov 2010,
I downloaded the 3.2 just now, why the upload bug is not fixed in the download?
I cant use Mootools because my PhotoSlide wont work with it.
Otherwise I would use the newest version 4.
/public_html/components/com_chronoforms/libraries
there is not such a file like chronoformuploads.php
Thanks
I downloaded the 3.2 just now, why the upload bug is not fixed in the download?
I cant use Mootools because my PhotoSlide wont work with it.
Otherwise I would use the newest version 4.
/public_html/components/com_chronoforms/libraries
there is not such a file like chronoformuploads.php
Thanks
I got it I have looked into the chronoforms directory, but
should have looked into the chronocontact directory
so now I dont get the red box, but still the file is missing on the server
should have looked into the chronocontact directory
so now I dont get the red box, but still the file is missing on the server
Hi finc,
Please turn debug on in the form General Tab, then submit the form and post the debug info here.
Bob
Please turn debug on in the form General Tab, then submit the form and post the debug info here.
Bob
1.Form passed first SPAM check OK
2.Form passed the submissions limit (if enabled) OK
3.Form passed the Image verification (if enabled) OK
4.Form passed the server side validation (if enabled) OK
5.$_POST Array: Array ( [B1] => Submit [6d38340c4a9d5aa452e9c9af5fd763cc] => 1 [1cf1] => aa03b20624bbf87c3df87ef7fa2a66cd [chronoformname] => file )
6.$_FILES Array: Array ( [file_0] => Array ( [name] => Lounaslista.pdf [type] => application/pdf [tmp_name] => /tmp/php5vktY6 [error] => 0 [size] => 46096 ) )
7.Upload routine started for file upload by : file_1
8.Form passed the plugins step (if enabled) OK
9.An email has been SENT successfully from (Form)to [email]me@hotmail.com[/email]
10.Debug End
2.Form passed the submissions limit (if enabled) OK
3.Form passed the Image verification (if enabled) OK
4.Form passed the server side validation (if enabled) OK
5.$_POST Array: Array ( [B1] => Submit [6d38340c4a9d5aa452e9c9af5fd763cc] => 1 [1cf1] => aa03b20624bbf87c3df87ef7fa2a66cd [chronoformname] => file )
6.$_FILES Array: Array ( [file_0] => Array ( [name] => Lounaslista.pdf [type] => application/pdf [tmp_name] => /tmp/php5vktY6 [error] => 0 [size] => 46096 ) )
7.Upload routine started for file upload by : file_1
8.Form passed the plugins step (if enabled) OK
9.An email has been SENT successfully from (Form)to [email]me@hotmail.com[/email]
10.Debug End
Hi finc,
There should be another message like this after #7
What do you have in your File Uploads settings?
Bob
There should be another message like this after #7
R:\xampp\htdocs\joomla1.5j\components\com_chronocontact\uploads\test_form_53\20110420181719_test_image.png has been uploaded OK
What do you have in your File Uploads settings?
Bob
Hi finc,
All looks good to me :-(
By all means email or PM me the site URL and a SuperAdmin login and I'll take a quick look.
Bob
All looks good to me :-(
By all means email or PM me the site URL and a SuperAdmin login and I'll take a quick look.
Bob
Hi finc,
Fixed, the file input is called file_0 but the upload settings were for file_1.
Bob
Fixed, the file input is called file_0 but the upload settings were for file_1.
Bob
This topic is locked and no more replies can be posted.