-
Type: Bug Report
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 4.3.9
-
Fix Version/s: 5.0.2
-
Component/s: File Uploader
-
Labels:None
-
External issue URL:
-
External issue ID:26
-
Copy Issue Key:
-
Patch Instructions:
Method ValidateFileName of class kUploadFormatter doesn't validate anything, but it actually generates new filename for uploaded file in case, when given filename is already used by other file in same directory.
There are 2 possible solutions:
1. make this method validate filename (returns true/false) and move current method body to new method _generateFileName
2. rename method to _generateFileName, because for now it does only that.