You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2023/04/13 05:07:00 UTC
[jira] [Resolved] (SLING-2166) Make file upload logic configurable
[ https://issues.apache.org/jira/browse/SLING-2166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved SLING-2166.
-------------------------------------
Resolution: Won't Fix
> 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 was sent by Atlassian Jira
(v8.20.10#820010)