Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Servlets Post 2.0.4
-
None
Description
When uploading a file to the location of an existing file, the SlingFileUploadHandler removes the old node before creating the new one. That's sometimes necessary, for example in the cases where a typeHint is provided for the upload that differs from the type of the existing node, but it's not always required. The current behaviour prevents us maintaining a version history for uploaded resources.
I'll attach a patch for this in a sec.