Uploadbug in j1.5 v2.5 rc1

abergman 01 Feb, 2008
Im running joomla 1,5 with chronoforms 2,5rc1

And i cant get the upload function working.
When i type in the enabled file-extensions it returns "array" and not what i typed in.



I attach the backup of the form.

[file name=jobb.cfbak size=2178]http://www.chronoengine.com/components/com_fireboard/uploaded/files/jobb.cfbak[/file]

Thanks!
GreyHead 01 Feb, 2008
Hi abergman,

It returns 'array' where? File uploads do return an array and this is used to attach the file to an email.

I'm guessing that you want to show something in the body of an email . . . if so, what? The file name, a link to the file . . .?

Bob
abergman 01 Feb, 2008
Hi

sorry I wasnt clear enough.

It shows the word "Array" in the Field names & allowed Extensions-box. Not what i typed in which was cv:doc|pdf|odt

I want it to upload the file and if possible send it as an email-attachment.

Now it does send an email but it dont upload the file.
GreyHead 01 Feb, 2008
Hi abergman,

I've seen this before, I think there's a fix in the forums. I'll go and search it out in a few minutes.

Later: see message #4977 in this thread

Bob<br><br>Post edited by: GreyHead, at: 2008/02/01 14:56
abergman 01 Feb, 2008
Still no luck, the file isnt uploaded, i cant even see it get handled in the debug msg.

I switched the lines in chronocontact.php as you said, bot no luck at all.
GreyHead 01 Feb, 2008
Hi abergman,

Nothing will show in the debug (I missed out files when I wrote the code).

Are you still seeing the Array error or is that now fixed?

Bob
GreyHead 02 Feb, 2008
Hi abergman,

I found a couple of small things in your form code.

First off, you must put in a ReplyTo Name and ReplyTo Email or Joomla may not send the email (though I think it now checks to see if you have a site default set).

Also it will help to put quotes round the attribute values in your form html and close the input tags. So
<input type=text name=name>
becomes
<input type="text" name="name" />
These changes are better HTML and help ChronoForms parse the code.

Bob
abergman 04 Feb, 2008
hi!

i will make the changes and see what happens. I still see the "array" word and not what i wrote, the fileupload works great but if I change a config I need to change the file extensions properties back to what I chose first.
cv:doc|odt|pdf
becomes
Array
and has to be changed back to
cv:doc|odt|pdf
a small bug I presume.<br><br>Post edited by: GreyHead, at: 2008/02/04 11:23
GreyHead 04 Feb, 2008
Hi abergman,

The message I linked to earlier (see #5306) tells you how to fix this bug.

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