file upload

finc 17 Apr, 2011
Is it enough to add this code to my existing form to get a file attached?
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.
Max_admin 17 Apr, 2011
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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
finc 18 Apr, 2011
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
GreyHead 19 Apr, 2011
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
finc 19 Apr, 2011
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
GreyHead 19 Apr, 2011
Hi finc,

There should be a file there ???

Bob
finc 19 Apr, 2011
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
GreyHead 20 Apr, 2011
Hi finc,

Please turn debug on in the form General Tab, then submit the form and post the debug info here.

Bob
finc 20 Apr, 2011
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
GreyHead 20 Apr, 2011
Hi finc,

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
GreyHead 20 Apr, 2011
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
GreyHead 20 Apr, 2011
Hi finc,

Fixed, the file input is called file_0 but the upload settings were for file_1.

Bob
finc 20 Apr, 2011
Thanks Bob,

now I have to add the records to the database, but that's another story.

Regards
Cem
This topic is locked and no more replies can be posted.