Fixed
Details
Priority
MinorAssignee
AlexAlexReporter
AlexAlexDeveloper
AlexAlexChange Log Group
FixedChange Log Message
Uploaded files were available in "/system" folder even after form validation error.Patch Instructions
Patches must be submitted through Phabricator.
To submit patch via Command Line use Patches Workflow (via Arcanist) tutorial.
To submit patch via Web Interface use Patches Workflow (via Web Interface) tutorial.
External issue ID
43External issue URL
Story Points
2Fix versions
Affects versions
Details
Details
Priority
Assignee
Alex
AlexReporter
Alex
AlexDeveloper
Alex
AlexChange Log Group
Fixed
Change Log Message
Uploaded files were available in "/system" folder even after form validation error.
Patch Instructions
Patches must be submitted through Phabricator.
To submit patch via Command Line use Patches Workflow (via Arcanist) tutorial.
To submit patch via Web Interface use Patches Workflow (via Web Interface) tutorial.
External issue ID
43
External issue URL
Story Points
2
Fix versions
Affects versions
Created June 3, 2009 at 7:30 PM
Updated December 30, 2024 at 2:21 AM
Resolved July 25, 2012 at 10:29 AM
When "inp_edit_swfupload" block is used on form, then selected files are actually uploaded in two cases:
when "upload" button is pressed (under uploader control)
when "save" button is pressed (on top of form)
By default SWFUploader uploads files in temp directory ("/system/tmp") and when saving record to database ("save" button pressed) is moving uploaded files from temp directory to actual directory, specified in unit config.
But, when we have some invalid data on form, like required field value is not entered and "save" button is pressed, then we are returned to form with validation errors displayed, but are already uploaded to target directory.
Files, uploaded to temp directory should only be moved to target directory when "save" button is pressed and there are not validation errors on form.