You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by "Michael Xu (xudong)" <do...@wizitsoft.com> on 2011/03/12 07:24:32 UTC

File upload controller

Dear all,

It seems ofbiz form (Single form and list form) doesn't support file type
field. Anyone can give some advices to implement such a controller?

I am not a technical guy..but it seems we have to touch the form schema
itself. I know the good thing here is to enable IDE to speed up form
programming, however the bad thing here is it is a trouble for controller
implementation. Have to touch core code if we need to implement a new
controller or replace a standard controller. And that's a disaster for
further upgrade.

Is there a more elegant way to loose the couple and make writing new
controller much easier. Furthermore, it would be great, if the controller
can be used in a consistent way in both FTL and form.

--
Regards,
Michael Xu (xudong)

Re: File upload controller

Posted by "Michael Xu (xudong)" <do...@wizitsoft.com>.
Hans,

Thanks. I cannot check it now..but have some questions:
1) those uploading single or multiple files controllers are supported in
ofbiz form?
2) how to extend those controller if we need ajax support or extra
validation rules (like file maximum size or type)?

Thanks in advance!

--
Regards,
Michael Xu (xudong)


On Sat, Mar 12, 2011 at 2:35 PM, Hans Bakker
<ma...@antwebsystems.com>wrote:

> check the content component there are examples of uploading single files
> or the imagemanagement function in the product component where you can
> upload multiple files.
>
> Regards,
> Hans
>
>
> --
> Ofbiz on twitter: http://twitter.com/apache_ofbiz
> Myself on twitter: http://twitter.com/hansbak
> Antwebsystems.com: Quality services for competitive rates.
>
>
> On Sat, 2011-03-12 at 14:24 +0800, Michael Xu (xudong) wrote:
> > Dear all,
> >
> > It seems ofbiz form (Single form and list form) doesn't support file type
> > field. Anyone can give some advices to implement such a controller?
> >
> > I am not a technical guy..but it seems we have to touch the form schema
> > itself. I know the good thing here is to enable IDE to speed up form
> > programming, however the bad thing here is it is a trouble for controller
> > implementation. Have to touch core code if we need to implement a new
> > controller or replace a standard controller. And that's a disaster for
> > further upgrade.
> >
> > Is there a more elegant way to loose the couple and make writing new
> > controller much easier. Furthermore, it would be great, if the controller
> > can be used in a consistent way in both FTL and form.
> >
> > --
> > Regards,
> > Michael Xu (xudong)
>
>
>

Re: File upload controller

Posted by Hans Bakker <ma...@antwebsystems.com>.
check the content component there are examples of uploading single files
or the imagemanagement function in the product component where you can
upload multiple files.

Regards,
Hans


-- 
Ofbiz on twitter: http://twitter.com/apache_ofbiz
Myself on twitter: http://twitter.com/hansbak
Antwebsystems.com: Quality services for competitive rates.


On Sat, 2011-03-12 at 14:24 +0800, Michael Xu (xudong) wrote:
> Dear all,
> 
> It seems ofbiz form (Single form and list form) doesn't support file type
> field. Anyone can give some advices to implement such a controller?
> 
> I am not a technical guy..but it seems we have to touch the form schema
> itself. I know the good thing here is to enable IDE to speed up form
> programming, however the bad thing here is it is a trouble for controller
> implementation. Have to touch core code if we need to implement a new
> controller or replace a standard controller. And that's a disaster for
> further upgrade.
> 
> Is there a more elegant way to loose the couple and make writing new
> controller much easier. Furthermore, it would be great, if the controller
> can be used in a consistent way in both FTL and form.
> 
> --
> Regards,
> Michael Xu (xudong)