| Summary: | [upload] Allow/disallow specific contentTypes to upload | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Benjamin Wolff <eclipse> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | 1.4 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Benjamin Wolff
I meant a set, not a map ;). API Ideas: IUploadConfiguration#setContentTypeFilter(Set<String> contentType, boolean allow) The set contains the RFC2616 types and the boolean tells if it is a blacklist or whitelist. The thrown Exception should be of type org.apache.commons.fileupload.FileUploadBase.InvalidContentTypeException The upload widget is obsolete and will be removed in the future. Use the new FileUpload widget or the FileDialog implementation from the incubator instead. With the new server-side fileupload design, it is possible to implement a FileUploadReceiver that rejects certain file types by throwing an exception. |