Opened 10 years ago
Closed 10 years ago
#37111 closed enhancement (fixed)
Improve handling of files without extensions
| Reported by: | joemcgill | Owned by: | joemcgill |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.5.3 |
| Component: | Media | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
Description
In certain situations uploaded files can result in a blank filename. In those cases we should add a default filename.
Attachments (3)
Change History (16)
#3
in reply to: ↑ 2
@
10 years ago
Replying to swissspidy:
Would this result in unnamed-file.jpg, unnamed-file-2.jpg, etc.?
Good question. It will indeed since this function is called from within wp_unique_filename(), where incrementing duplicate file names is handled.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Would this result in unnamed-file.jpg, unnamed-file-2.jpg, etc.?