Announcement Announcement Module
Collapse
No announcement yet.
Support for File Uploads Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment

    Working...
    X