another file file upload question > please help

Post any questions you may have here

another file file upload question > please help

Postby gordonling on Tue Jun 26, 2007 4:17 pm

Firstly, thank you for saving my life. But then again, I need another lifesaver(!) Attached the html codes that I have prepared in the Form Code Tab>Form HTML field.
Code: Select all
<h3>You can submit your artwork online!</h3>
Personal Details<br />
  <br />
  Full Name<br /><input name="name" type="text" id="name" size="50" />
  <p>ID card no<br /><input name="ID_no" type="text" id="id_no" size="50" />
  </p>
  <p>Email add<br /><input name="email" type="text" id="email" size="50" />
  </p>
  <p>Contact Number<br /><input name="contact_no" type="text" id="contact_no" size="50" />
  </p>
  <p>college or university name<br />
    <input name="college_uni" type="text" id="college_university" size="50" />
  </p>
  <p>course name<br />
    <input name="course_name" type="text" id="course_name" size="50" />
  </p>
  <p>
    address (first line)
    <input name="address1" type="text" id="add_one" size="35" />

    <br />
    address (second line)
    <input name="address2" type="text" id="add_two" size="35" />
  </p>
  <p>
    <input name="postcode" type="text" id="postcode" value="postcode" size="10" maxlength="8" />
    <input name="town_city" type="text" id="town_city" value="town/city" size="21" />
    <input name="city" type="text" id="state" value="state" size="18" />
  </p>
  <p>
<input name="country" type="radio" id="malaysia" value="malaysia" />
Malaysia
<br />
<input name="country" type="radio" id="singapore" value="singapore" />
Singapore
    <br />
<input name="country" type="radio" id="thailand" value="thailand" />
Thailand</p>
  <hr />
  <p><b>Upload file </b></p>
  <p>
    Upload file
    <input name="file" type="file" size="50" />
  </p>
  <hr />
  <p>Submission</p>
  <p>1)   All image files must be in CMYK, 300dpi, tiff format, 16.5cm in width, 16cm in height.<br />
  2)   File name: name.tiff (e.g.: johndoe.tiff).<br />
  3)
  Send in your entries by September 10, 2007. </p>
  <p>
    <label>
    <input type="submit" name="Submit" value="Submit" />
     </label>
     <input type="reset" name="Submit2" value="Reset" />
    <br />
  </p>
The rest of the fields are empty and i have included the Element titles. While the Auto generated fields are as below:

Code: Select all
<?php
   global $database;
$database->setQuery( "INSERT INTO #__chronoforms_1 VALUES  (
'' , '". date('Y-m-d')." - ".date("H:i:«»s"«»)."' , '".$_POST['form1']."' , '".$_POST['name']."' , '".$_POST['ID_no']."' , '".$_POST['email']."' , '".$_POST['contact_no']."' , '".$_POST['college_uni']."' , '".$_POST['course_name']."' , '".$_POST['address1']."' , '".$_POST['address2']."' , '".$_POST['postcode']."' , '".$_POST['town_city']."' , '".$_POST['city']."' , '".$_POST['country']."' , '".$_POST['file']."' , '".$_POST['Submit']."' , '".$_POST['Submit2']."');" );
if (!$database->query()) {
echo "<script> alert('".$database->getErrorMsg()."'); window.history.go(-1); </script>
";
}
?>


I got the email with the results displayed in the tables from the form management tab. But I'm not sure where did the file uploads go. I have checked the upload directory via ftp for the chronocontact component but it is seen nowhere.

I'm quite new to this component. Can somebody please help me on this. I the checked the FAQs and throught this forum but it's nowhere to be seen. It's actually quite urgent this one. Any help is much appreciated.

Thanks a bunch to whoever!

Post edited by: gordonling, at: 2007/06/26 12:20

Edited to add code tags. Greyhead<br><br>Post edited by: GreyHead, at: 2007/08/14 17:10
gordonling
Fresh Boarder
 
Posts: 6
Joined: Tue Jun 26, 2007 8:43 am

Re:another file file upload question > please help

Postby admin on Tue Jun 26, 2007 4:32 pm

Hi,

#1 - in the form attachement tag, u must put this : enctype="multipart/form-data"

#2- enable file uploads and configure it well then ur files should be at components/com_chronocontact/uploads/

Please let me know if the problem still there

Max
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2127
Joined: Mon Aug 14, 2006 5:29 am

Re:another file file upload question > please help

Postby gordonling on Tue Jun 26, 2007 5:27 pm

Hi,

Thank you for the fast respond! I have inserted #1 and have did #2 before this. However, it still isn't working. The uploaded files are still not included in the email and are not on the uploads folder... Is there anything else that I might have missed?

Thanks!
gordonling
Fresh Boarder
 
Posts: 6
Joined: Tue Jun 26, 2007 8:43 am

Re:another file file upload question > please help

Postby admin on Tue Jun 26, 2007 5:32 pm

Could you please put here a screenshot of ur first tab and "uploads" tab at the form edit page ?

Thanks,

Max
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2127
Joined: Mon Aug 14, 2006 5:29 am

Re:another file file upload question > please h

Postby gordonling on Tue Jun 26, 2007 7:56 pm

Image

--------------

Image


Hi max,

There you go...

Post edited by: gordonling, at: 2007/06/26 15:58<br><br>Post edited by: gordonling, at: 2007/06/26 15:59
gordonling
Fresh Boarder
 
Posts: 6
Joined: Tue Jun 26, 2007 8:43 am

Re:another file file upload question > please h

Postby admin on Tue Jun 26, 2007 9:16 pm

Hi,

At screen 2, you must have minimum filesize

At screen 1, you must have " enctype=...etc", so you omitted the "enctype="

Cheers

Max
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2127
Joined: Mon Aug 14, 2006 5:29 am

Re:another file file upload question > please help

Postby gordonling on Tue Jun 26, 2007 11:29 pm

Hi,

Have inserted the minimum file size and enctype="multipart/form-data" at the tag attachment.. But it still doesnt work.. :(

By the way, are there any element titles involved for the upload file field?

Thanks..
gordonling
Fresh Boarder
 
Posts: 6
Joined: Tue Jun 26, 2007 8:43 am

Re:another file file upload question > please help

Postby admin on Wed Jun 27, 2007 12:56 am

aha, of course, I though you are putting this to hide your real field name, you must replace field_name_1 with your file field name, which is "file" i think ?
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2127
Joined: Mon Aug 14, 2006 5:29 am

Re:another file file upload question > please help

Postby gordonling on Wed Jun 27, 2007 10:34 am

:woohoo:

Arghh!! It works now! Gwosh, Can't believe i missed that one.

Will be looking forward for more updates on this one in the future.

Thank you very much Max!:laugh:
gordonling
Fresh Boarder
 
Posts: 6
Joined: Tue Jun 26, 2007 8:43 am

Re:another file file upload question > please help

Postby admin on Wed Jun 27, 2007 7:19 pm

Thank you sir, If you like it then it would be great if you can make a vote/review at the Joomla extensions dir!! :)

cheers

Max
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2127
Joined: Mon Aug 14, 2006 5:29 am

Re:another file file upload question > please help

Postby gordonling on Thu Jun 28, 2007 8:59 am

Sure mate. Will do!

;)
gordonling
Fresh Boarder
 
Posts: 6
Joined: Tue Jun 26, 2007 8:43 am

Re:another file file upload question > please h

Postby chloe71 on Tue Jul 03, 2007 1:57 pm

Hi

I have same problem too, but I dun understand how to solve it. Pls help

<form enctype="multipart/form-data" action="components/com_chronocontact/uploads/" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>


I received email without attachment. Izzit need a database?
I get the script from script site.

Please<br><br>Post edited by: chloe71, at: 2007/07/03 10:10
chloe71
Fresh Boarder
 
Posts: 15
Joined: Tue Jul 03, 2007 6:49 am

Re:another file file upload question > please h

Postby snadowitz on Tue Jul 03, 2007 2:56 pm

I have a similar problem however I do NOT even see the tab shown in the screenshot that allows "enable uploads" - I installed the latest release from the downloads screen
Webmaster - www.starcrossedtattoo.com - great art.....
Webmaster - www.electronicsigns.net.au - up for 6+ months and no complaints - yet!!
Webmaster - www.thetaxback.co.uk - work in progress......
snadowitz
Fresh Boarder
 
Posts: 4
Joined: Tue Jul 03, 2007 3:12 am

Re:another file file upload question > please h

Postby GreyHead on Tue Jul 03, 2007 2:59 pm

Hi chloe71,

I don't know where the hidden input for MAX_FILE_SIZE came from, that isn't needed for ChronoForms.

To have file uploads work you *must*:
  • Enable uploads on the File Uploads tab
  • Put valid entries in *all three* input fields: allowable extensions, max size & min size
  • On the General tab put enctype="multipart/form-data" in the 'Form tag attachment' box


No, a database isn't needed for this to work.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3252
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:another file file upload question > please h

Postby chloe71 on Wed Jul 04, 2007 6:56 am

Hi Bob,

I think I did that, but still failed.

I deleted this hidden input for MAX_FILE_SIZE, same too.<br><br>Post edited by: chloe71, at: 2007/07/04 02:59
chloe71
Fresh Boarder
 
Posts: 15
Joined: Tue Jul 03, 2007 6:49 am

Next

Return to Questions & Answers

Who is online

Users browsing this forum: Google [Bot], MSN [Bot], Yahoo [Bot] and 3 guests

cron