Results 1 to 2 of 2

Thread: Support for File Uploads

  1. #1
    Join Date
    Nov 2009
    Posts
    25

    Default Support for File Uploads

    Hello,

    Consider the following RooEntity:

    @Entity
    @RooJavaBean
    @RooToString
    @RooEntity
    public class Image {

    @Lob
    private String description;

    @Lob
    private byte[] contents;

    }

    Currently the generated controller and views do not handle the byte[] correctly. I'd like a file input control be generated in the views and have the controller do what it needs to do to populate the "contents" with the file being uploaded.

    Are there plans for ROO to do this automatically?

    Thanks,
    Werner

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    Hi Werner,

    Yes file upload is on our todo list. There is also a feature request ticket for it:
    http://jira.springframework.org/browse/ROO-442 so please go ahead and vote on it so we can evaluate community interest. There are also a number of Web development feature requests (aggregated under ROO-8) which (when implemented in the next major Roo release past the 1.0 release) will help ad-on developers to implement such features much easier.

    If you are interested in helping out on improving file upload support, we would be open to ideas from your side (just comment on ROO-442).

    Cheers,
    Stefan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •