Message from discussion
How to properly user JFormFieldFile???
Date: Sun, 25 Mar 2012 01:57:55 -0700 (PDT)
From: "Daniel D. / compojoom" <danielsd...@yahoo.fr>
To: joomla-dev-cms@googlegroups.com
Message-ID: <12620214.635.1332665875864.JavaMail.geo-discussion-forums@ynlt15>
In-Reply-To: <CABYB9+APvn3ujS+AZvnp04eVP5FCn2u2hONxXyk0rnq2KjkA+Q@mail.gmail.com>
References: <10052903.1387.1332517162010.JavaMail.geo-discussion-forums@vbut24>
<20089811.1745.1332538024443.JavaMail.geo-discussion-forums@vbxq27>
<28234284.147.1332589635515.JavaMail.geo-discussion-forums@yneo2> <14299204.354.1332615764190.JavaMail.geo-discussion-forums@vbhy1>
<CABYB9+APvn3ujS+AZvnp04eVP5FCn2u2hONxXyk0rnq2KjkA+Q@mail.gmail.com>
Subject: Re: [jcms] Re: How to properly user JFormFieldFile???
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_633_14583584.1332665875863"
------=_Part_633_14583584.1332665875863
Content-Type: multipart/alternative;
boundary="----=_Part_634_24740830.1332665875863"
------=_Part_634_24740830.1332665875863
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
hey guys!
I think that I haven't explained that good enough.
Yes I overwrote the save function in the model and I upload the KML files
myself - no issue here.
The problem is -> to get to the save function in the model, one needs to go
in the save function of the controller.
If I override the save function in the controller and trick the $data to
include the file field than everything is fine.
I was just wondering if this is the correct way to do it, or if there is an
easier one.
Btw - if I don't set the formField to be required then the validation
function doesn't complain and one lands in the model's save function :)
So it is really just the issue with having this field required and failing
the validation after that. ( I understand why it fails - if anyone else
will have better ideas how to trick this thing - or to solve this nuisances
once and forever :))
Cheers,
Daniel
------=_Part_634_24740830.1332665875863
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
hey guys!<br>I think that I haven't explained that good enough. <br>Yes I overwrote the save function in the model and I upload the KML files myself - no issue here.<br><br>The problem is -> to get to the save function in the model, one needs to go in the save function of the controller.<br><br>If I override the save function in the controller and trick the $data to include the file field than everything is fine. <br>I was just wondering if this is the correct way to do it, or if there is an easier one.<br><br>Btw - if I don't set the formField to be required then the validation function doesn't complain and one lands in the model's save function :)<br><br>So it is really just the issue with having this field required and failing the validation after that. ( I understand why it fails - if anyone else will have better ideas how to trick this thing - or to solve this nuisances once and forever :))<br><br>Cheers,<br>Daniel<br>
------=_Part_634_24740830.1332665875863--
------=_Part_633_14583584.1332665875863--