[ 
https://issues.apache.org/jira/browse/SLING-2166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13567925#comment-13567925
 ] 

Andrew Khoury commented on SLING-2166:
--------------------------------------

It would also be nice to be able to configure allowed content types / file 
extensions.
                
> Make file upload logic configurable
> -----------------------------------
>
>                 Key: SLING-2166
>                 URL: https://issues.apache.org/jira/browse/SLING-2166
>             Project: Sling
>          Issue Type: Improvement
>          Components: Engine
>            Reporter: Chetan Mehrotra
>            Priority: Minor
>
> The current file upload logic in Sling Engine (as present in ParameterSupport 
> [1]  class) relies on Common Fileupload. This logic can be enhanced to use 
> some features provided by the Common Fileupload library
> - Allow location of folder where temporary files are created configurable. 
> This can be done by specifying the repository in the DiskFileItemFactory. So 
> for Sling we can set to a folder under launchpad and better manage it
> - Enable the FileCleaningTracker such that any temporary file that gets 
> created also get deleted.
> - Allow specifying the maximum file size that can be uploaded
> - Update the version of file upload library
> Further the FileCleaningTracker can be exposed as a service and used by other 
> components
> [1] 
> http://svn.apache.org/repos/asf/sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/parameters/ParameterSupport.java
> [2] 
> http://svn.apache.org/repos/asf/commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileCleaningTracker.java

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to