File does not upload

Post any questions you may have here

File does not upload

Postby xmvaldez on Sat Mar 29, 2008 8:20 am

I receive an email with all the data being in the appropriate fields except for the file. There is also no attachment. Also when I get the data from the backend, same thing. No file name. And when I go to the upload folder via ftp, no file. I have changed the chmod settings on the fileperms in the joomla config file.

I am not sure my html code is correct. I also am not certain of whether or not there must be some parameters in the "File uploads" tab in the backend of the form. I have tried leaving everything blank and also putting in some parameters. Here is my html code:
Code: Select all
<fieldset>
<legend>Your data</legend>
<label for="fromname">Name : </label>
<input type="text" name="fromname" id="fromname" tabindex="510" value="<?php echo $my->name?>"<?php echo $readonl?> /><br />
<label for="fromemail">Email : </label><input type="text" name="fromemail" id="fromemail" tabindex="511" value="<?php echo $my->email?>"<?php echo $readonl?> /> <br />
<label for="assignment">Assignment : </label><input type="text" size="60" name="assignment" id="assignment" tabindex="512" /><br />
<i>Please identify which assignment you are turning in above.</i><br /><br />
<label for="datafile">Please choose your file: </label><br>
<input type="file" name="datafile" id="datafile" tab index="513"size="40">
<br />
<label for="notes">Additional Notes : </label><textarea cols=40 rows=4 name="notes" id="notes" tabindex="514"></textarea><br />
</fieldset>
<fieldset>
<legend>Send</legend>
<input type="submit" value="Send" tabindex="515" /> <input type="reset" value="Start over" tabindex="516" /></fieldset>
I also wonder if it might be possible the the webhost (Dreamhost) requires a php or cgi script for uploads and if this should be in the code?

Edited to add code tags<br><br>Post edited by: GreyHead, at: 2008/03/29 14:54
xmvaldez
Fresh Boarder
 
Posts: 1
Joined: Tue Mar 25, 2008 7:01 pm

Re:File does not upload

Postby ant101 on Sat Mar 29, 2008 4:15 pm

Hi,

I have the same problem as xmvaldez.

I am also suspecting that my host, which uses cpanel, is not configured correctly to accept uploaded files to this directory.
All other email fields are emailed correctly.
Anyone know how to solve this problem, I can't find any forum posts which help resolve my upload issue.
My guess is php needs to be configured correctly to enable this to work.

Help!
ant101
Fresh Boarder
 
Posts: 2
Joined: Sat Mar 29, 2008 9:09 am

Re:File does not upload

Postby GreyHead on Sat Mar 29, 2008 6:57 pm

Hi both,

Have you put enctype="multipart/form-data" in the 'Form tag attachment' box on the General tab?

Bob<br><br>Post edited by: GreyHead, at: 2008/03/29 14:57
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: 3891
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:File does not upload

Postby ant101 on Sat Mar 29, 2008 11:12 pm

Hi GreyHead,

Thanks for your help, I hadn't put enctype="multipart/form-data" in the 'Form tag attachment' - my bad! I see it was listed in the FAQ section on the website!

After I did this , I got no emails at all, I had read about this problem too in the forums.

I ran through the FAQ and did another 2 changes which helped me to get the attachment emailed correctly, they were:

1. Changed my 0 KB file size minimum to 1 KB
2. Edited the chronocontact.php and changed the $fileperms = "0644"; to $fileperms = "777";
I'm not sure why 0644 did not work in the first place.

Thanks for a great Joomla Plugin :)
ant101
Fresh Boarder
 
Posts: 2
Joined: Sat Mar 29, 2008 9:09 am

Re:File does not upload

Postby diazwatson on Fri Apr 18, 2008 8:01 pm

Hi people,
Firstly many thanks to the developments for made this wonderful component. I really enjoy working with it.

Now my question:

I'm trying to make a form for send doc files but it doesn't send the file.

Some times I receive the message:

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/swandigita/domains/swandigital.com/public_html/includes/joomla.php on line 3992

Warning: Variable passed to each() is not an array or object in /home/swandigita/domains/swandigital.com/public_html/includes/joomla.php on line 3994


Or simplify go direct to the main page.

I've done all of the explanations that appear in the FAQ and Forum.

1. Put enctype="multipart/form-data" in the 'Form tag attachment'
2. Changed my 0 KB file size minimum to 1 KB
3. Edited the chronocontact.php and changed the $fileperms = "0644"; to $fileperms = "777"

But it doesn't work. The form is here

Any suggestion? :(

Thanks<br><br>Post edited by: GreyHead, at: 2008/04/21 01:21
diazwatson
Fresh Boarder
 
Posts: 7
Joined: Fri Apr 18, 2008 12:45 pm

Re:File does not upload

Postby GreyHead on Mon Apr 21, 2008 5:20 am

Hi diazwatson,

We've seen this error before and it seems to be link to an empty attachments array. Please will you take a Form Backup from the icon in the Form Manager and send it to me at the address in my sig so that I can take a closer look.

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: 3891
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:File does not upload

Postby diazwatson on Mon Apr 21, 2008 11:06 am

Sorry Bob which address did you mean?
The mail address at the component signature?


Thanks
diazwatson
Fresh Boarder
 
Posts: 7
Joined: Fri Apr 18, 2008 12:45 pm

Re:File does not upload

Postby GreyHead on Mon Apr 21, 2008 1:13 pm

Hi Diazwatson,

The one right below here in my sig 'info at greyhead.net'

Bob
|
v
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: 3891
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:File does not upload

Postby diazwatson on Mon Apr 21, 2008 2:52 pm

Ready. !!!
diazwatson
Fresh Boarder
 
Posts: 7
Joined: Fri Apr 18, 2008 12:45 pm

Re:File does not upload

Postby GreyHead on Mon Apr 21, 2008 5:17 pm

Hi diazwatson,

A few things might be causing this.

You must complete all four boxes on the File Uploads tab (two are blank on the form you sent me).

You should enter a ReplyTo name on the General Tab (sometimes Joomla will fill this in from your site settings but better to do it on the form).

Please put quotes around attribute values so
Code: Select all
<INPUT TYPE=FILE SIZE=40 NAME="Attatchment">
should be
Code: Select all
<input type='file' size='40' name="Attatchment" />
I don't think this causes a problem here but it can do with other fields.

Try these changes and let us know what happens.

Bob<br><br>Post edited by: GreyHead, at: 2008/04/21 13:17
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: 3891
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:File does not upload

Postby shoeshut on Mon Apr 21, 2008 6:54 pm

Hello,
My files are uploaded correctly but the file name is not shown in the mail received nor in the database when it can be inserted.
I followed your advices above and yes it's a unique name.
Any more ideas?
Thx for your time
shoeshut
Fresh Boarder
 
Posts: 7
Joined: Thu Apr 17, 2008 9:54 am

Re:File does not upload

Postby diazwatson on Tue Apr 22, 2008 2:49 am

Hi again.

I did all of the things that you recommend me and actually the error message disappeared but when I have a look to my mails looking for the message with the file attached, surprise!!

I've got only a text message.

Also I had notice that now the name of the file disappeared (in the mail massage)

Only appear a space in blank

Any idea?

Thanks a lot
diazwatson
Fresh Boarder
 
Posts: 7
Joined: Fri Apr 18, 2008 12:45 pm

Re:File does not upload

Postby GreyHead on Tue Apr 22, 2008 2:55 am

Hi diaz watson & shoeshut,

Please take Backup copies of your forms and send them to me to look at. Much easier that way than trying to diagnose on line.

Thanks

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: 3891
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:File does not upload

Postby diazwatson on Tue Apr 22, 2008 3:08 am

My friend the form copy that you want is already in you inbox.

Thanks and very sorry for this trouble.

Nothing more stressful that a group of users complaining and asking for solution.

As a IT professional I recognize it


Cheers.
Raul
diazwatson
Fresh Boarder
 
Posts: 7
Joined: Fri Apr 18, 2008 12:45 pm

Re:File does not upload

Postby GreyHead on Tue Apr 22, 2008 4:29 am

Hi Raul,

In the File Uploads tab you have "field_name_1:jpg|gif|doc|zip" which follows Max's example. What' needed here is the name of your File field, which is Attachment
Code: Select all
<input type="file" size="40" name="Attachment">
Try "Attachment:jpg|gif|doc|zip" instead.

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: 3891
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Next

Return to ChronoForms Questions & Answers

Who is online

Users browsing this forum: Yahoo [Bot], zendiko and 6 guests