Ticket #1454 (new defect)
Files uploaded with no extension can't be saved if a file with the same name already exists
| Reported by: | mpeel | Owned by: | sminnee |
|---|---|---|---|
| Priority: | medium | Milestone: | 2.3.1 |
| Component: | CMS - Files and Images section | Version: | |
| Severity: | medium effort / impact | Keywords: | |
| Cc: | Hours: |
Description
Normally, SilverStripe? will try to add numbers to the end of a filename and then try to save the file again. However, the regexp that runs doesn't take into account files without an extension.
We should either add an extra check to make sure files have extensions, or fix the regexp.
The regexp in question is on line 170 of sapphire/branches/2.0.1-uplay/filesystem/File.php (approx. line 170 elsewhere probably)
Change History
Note: See
TracTickets for help on using
tickets.
