Forums

Upload and Email Problems

kannansreenivas 21 Mar, 2009
I am first to with chronoforms...
My issue is, I cant see the files up loaded through chronoform file upload.
I checked in the upload folder and i see only an html file having value NULL.
I have done exactly as in the guidlines. and gave file extention as doc
Im using joomla 1.5
I just dragged and dropped the file upload field... to create that field.

http://trialdreambeans.kannansreenivas.com/index.php?option=com_chronocontact&chronoformname=test_form

I also didnt get mail though I made settings as in guidelines. ( May be some times i didnt give the mail name as in guidelines , i mean mail pertaining to domain name as its a test page )

Kindly Help me... also, I cant find the date and time picker in the forms.

Thank you in advance.
Kannan sreenivas
GreyHead 21 Mar, 2009
Hi kannansreenivas,

I've moved your post to a new thread in a more appropriate forum.

Please check the Email and File Upload Tutorials from the downloads area here carefully; there are several places that incorrect setup can cause these problems.

Bob
kannansreenivas 21 Mar, 2009
Its exactly as in the tutorials in Downloads area...

except that my file extention i gave is doc

But It dont work for me..

KIndly helpp
GreyHead 21 Mar, 2009
Hi kannansreenivas,

Please email or PM me a SuperAdmin login for your site.

Bob
kannansreenivas 21 Mar, 2009
mailed Username and Pass for a superadmin user
GreyHead 21 Mar, 2009
Hi kannansreenivas,

You have changed the name of the File upload filed from 'file_4' to file_name' in the Form HTML but have not made the same change on the File Uploads tab. These two must match.

You have set up your email with Dynamic Subject, From Name and From Email fields. Dynamic fields *only* take valid field names but you have *static* values in there. Please delete these three fields from the Email Setup and replace them with Subject, From Name & From Email fields.

Bob
kannansreenivas 21 Mar, 2009
Thank you for replay...

but let me tell that i have never changed any html... any ways, let me do as directed by you and post here in few minuts

Thank you.
Kannan Sreenivas
GreyHead 21 Mar, 2009
Hi kannansreenivas,

Maybe you changed it in the Wizard, doesn't really matter, the two still have to match.

Bob
kannansreenivas 21 Mar, 2009
Sir,
I deleted as you said and set up normal fields.
and uploaded a doc file of 32 kb

But when i checked in cpanel, i could not see the uploaded file
in
/public_html/trialdreambeans/components/com_chronocontact/uploads/test_form

Also mail not received may be ISP Problem I think as its mentioned in tutorial

Date ant time also dont work

Please do help more sir,
Thank you.
kannan Sreenivas
GreyHead 21 Mar, 2009
Hi kannansreenivas,

The input field names still do not match - see the image below.

The date-time picker is a similar problem, the field name and Id must be the same. (This is a known bug in RC2 that Max has fixed for the next release.)

Bob
kannansreenivas 21 Mar, 2009
Thaaaaaaaaaaannnn u very much for the help received and The Fabulous support from Chrono Engine.. I Uploaded and find file in the folder.
Thanks a lot.

The issue now persists is as follows.

1. Date and time Picker:
<div class="form_item">
<div class="form_element cf_datetimepicker">
<label class="cf_label">Date and Time</label>
<input class="cf_datetime" maxlength="-1" size="20" id="date_3" name="date_3" type="text" />
Both id and name same.. still dont work.....

2. Is there any solution to download the uploaded file through module itself or am i have to use ftp for that particular directory? What normaly advise by Team chrono Engine??

3. The mail dont come may be the issue i use a test domain and ISP dont permit . Right?

Thank you very much.
Kannan Sreenivas
GreyHead 21 Mar, 2009
Hi kannansreenivas,

For the date-time picker change them both to 'test_date' - I think the Wizard must create a list when the form is saved.

E-mail - I've no idea - check if you can send an email when someone registers.

Bob
kannansreenivas 21 Mar, 2009
THANKS A LOT.....

THE FINAL THOUGHT WAS CORRECT...

GIVE THE FILD NAME GIVEN WHILE CREATING DATE AND TIME PICKER TO ID AND NAME OR DO NOT ALTER THAT IN WIZARD...

I ONCE AGAIN APPRICIATE THIS FORUM.... AND THE ADMINISTRATORS AND ESPECIALLY Mr. Bob Janes.. who resolved this issue... in Simple ways...

I THINK, THIS TOPIC IS COLSED FROM MY END..... BUT LIKE TO REMAIN HERE IN FOR THOSE WHO HAVE SAME ISSUE.

Lets hope the new vertion release shortly resolving the bugs.

Also Please do post is there any component to download the uploaded file or we use tradetional FTP account

Thank you for everything... Good luck to all
elaphe 13 Aug, 2009
Hello

I've a problem, that I cannot find uploaded files anywhere.

... The plugin settings looks like on the previeus image


the code in form have the name set correctly

<div class="form_item">
	<div class="form_element cf_fileupload">
		<label class="cf_label" style="width: 150px;">File:</label>
		<input class="cf_fileinput cf_inputbox required" style="some style" id="file_2" name="file_2" type="file" />
	</div>
</div>


But it still doesn't work.

PHP settings are ok (file upload on, max. file 6M)
Joomla 1.5, Chronoform 3.1 RC5.1

Thanks for your help.
GreyHead 13 Aug, 2009
Hi elaphe,

Your file_3 and file_4 settings are missing the lower size limit {1000-??}

Please turn on Debug on the Form General Tab and show us the output when you upload files.

Bob
elaphe 13 Aug, 2009
Hi GreyHead

I set up the lower limit for file_3 and file_4 to 1. (the file_2 is recuired, the other two no)

The problem founded by DEBUG is

$_FILES Array: Array ( [file_2] => Array ( [name] => zlinfest_program_plakat_2008.pdf [type] => application/pdf [tmp_name] => /tmp/phpTGRPbI [error] => 0 [size] => 99223 ) [file_3] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [file_4] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) )

But I don't know how to fix it ... looks like there is enough space.
GreyHead 13 Aug, 2009
Hi elaphe,

That all looks fine - but there should be more debug info?

Bob
elaphe 13 Aug, 2009
Ok, I put here all rows. But there are some errors in row, I've posted.

Form passed first SPAM check OK
Form passed the submissions limit (if enabled) OK
Form passed the Image verification (if enabled) OK
Form passed the server side validation (if enabled) OK
$_POST Array: Array ( [text_9] => test [text_10] => [email]email@example.com[/email][text_8] => ddd [button_11] => Send [cfde614fd693917587695665c1dbada4] => 1 [1cf1] => c5534284481162a708e39c6fbef9b8a6 [chronoformname] => Prace )

$_FILES Array: Array ( [file_2] => Array ( [name] => zlinfest_program_plakat_2008.pdf [type] => application/pdf [tmp_name] => /tmp/phpTGRPbI [error] => 0 [size] => 99223 ) [file_3] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [file_4] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) )

Form passed the plugins step (if enabled) OK
An email has been SENT successfully from (Zájem o práci)email@example.com to [email]email@example.com[/email]
Debug End
GreyHead 13 Aug, 2009
Hi elaphe,

The error codes are normal: error => 0 means that there is no error and error => 4 means that no file was uploaded which is also correct for the second and third inputs.

What is missing are the ChronoForms File Upload debaug reports.

Please set Enable Uploads on the File uploads tab to 'NO', save the form then re-open it and set it to 'YES' again and re-save - see if this solves the problem.

Bob
toneee 04 Sep, 2009
I have the same problem. My debug info is as follows:

* Form passed first SPAM check OK
* Form passed the submissions limit (if enabled) OK
* Form passed the Image verification (if enabled) OK
* Form passed the server side validation (if enabled) OK
* 20090904173451_sales_whitepaper_Facebook-Marketing-Package.pdf has been uploaded OK
* Form passed the plugins step (if enabled) OK
* Emails data loaded OK
* Form passed all before email code evaluation OK
* An email has been SENT successfully from (Test Sub Guy){test@email.com} to [email]resume@test.com[/email]
* Debug End

$_POST array: Array ( [full_name] => Test Sub Guy [company] => Toneee.com, LLC [email] => [email]test@email.com[/email] [phone] => 678-555-1212 [license_type] => General [license_no] => AA-123456 [license_status] => Expired/Lapsed [start_date] => 09/14/2009 [addl_info] => [4126a365e599b494ae20d8b0d918d01d] => 1 )

$_FILES array: Array ( [file_15] => Array ( [name] => sales_whitepaper_Facebook-Marketing-Package.pdf [type] => application/pdf [tmp_name] => /tmp/phpO23GmT [error] => 0 [size] => 94142 ) )

Warning: implode() [function.implode]: Invalid arguments passed in /components/com_chronocontact/chronocontact.php on line 562



The field name, originally created using the wizard, is named "resume". After thinking that it may need to be called file_15 to match the File Uploads tab, I renamed the field in the wizard to file_15 and on the File Uploads tab to file_15 as well. This is what I set in the File Uploads tab:
file_15:pdf|doc|txt|rtf{5000-1}

The File Uploads field is set to yes and I've included the enctype="multipart/form-data" in the Form attachment field (General tab).

What did I do wrong?

Oh wow, I also noticed that I had the exact problem before, but the solution I found didn't work this time around. See here.
GreyHead 05 Sep, 2009
Hi toneee,

Which version of Chronoforms is this - it doesn't look like a recent release?

And what exactly is the problem - that the file uploads aren't attached to your email? Or that they aren't uploading to the uploads folder? The upload itself looks as though it's taking place OK.

Bob
toneee 06 Sep, 2009
Hi Bob,

Thanks for the response. According to my Extensions Manager, I have 3.1 RC2. Sorry for not clarifying: The files are uploading to the proper folder once I set the folder to 777. (The folder's name was identical to the form's name.) So it successfully uploads, but the email does not contain any attachments upon delivery. If I use the field name's tag (i.e. {resume} or {file_2}) in the email body, it will print the name of the file. Whether I decide to use the upload field's tag in the email or not, the file is never attached.
GreyHead 06 Sep, 2009
Hi Toneee,

I just ran a test on my old 3.1 RC2 installation and file uploads are attached OK.

All the settings you have here look OK and I really don't know what else to suggest. If you want to PM or Email me a SuperAdmin Login then I'll take a quick look and see if I can see anything.

Bob
toneee 06 Sep, 2009

Hi Toneee,

I just ran a test on my old 3.1 RC2 installation and file uploads are attached OK.

All the settings you have here look OK and I really don't know what else to suggest. If you want to PM or Email me a SuperAdmin Login then I'll take a quick look and see if I can see anything.

Bob


Thanks Bob. I will PM you with details shortly.
maanet 15 Sep, 2009
Hello... my Problem is the same..

i can submit all Data but no file is uploaded into the Folder. The Permission is 777
Debug mode one, all looks the same problem.[attachment=0]chrono.JPG[/attachment]
Vollover 12 Jan, 2011
Hello EveryOne,

My form upload the files into the specific folder I already set, but it does not send any email, and does not have debug report. When I click on the submit button, a strange error message appear above the form. [attachment=1]error.jpg[/attachment]


If I turn "Enable uploads" to NO, everything fine: The form makes debug report and send email as I set. But debug report has error [attachment=0]debug_report.jpg[/attachment]
What is wrong?
Vollover 13 Jan, 2011
Good morning GreyHead,

Thank you very much! it works!
(I didn't sleep much because of this problem.😀)
This topic is locked and no more replies can be posted.