Opened 9 years ago
Closed 9 years ago
#37111 closed enhancement (fixed)
Improve handling of files without extensions
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.5.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
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
@
9 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.
Would this result in unnamed-file.jpg, unnamed-file-2.jpg, etc.?