#1784 closed defect (bug) (fixed)
Upload directories created with wrong permissions
| Reported by: | error | Owned by: | markjaquith |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 1.6 |
| Severity: | normal | Keywords: | bg|has-patch bg|commit |
| Cc: | Focuses: |
Description
WordPress creates upload directories if they don't exist corresponding to year and month, and the directories come out with incorrect permissions. This results in 403 Forbidden errors when trying to access images stored in the directories.
Patch fixing the problem is included.
Attachments (2)
Change History (7)
#1
@
21 years ago
- Keywords bg|commit added; bg|2nd-opinion removed
- Owner changed from to
- Status new → assigned
#3
@
21 years ago
This can vary from host to host. Some need 777, some need 775, and others need 755. Maybe we should stat() wp-content/ to get its mode and use that mode for all of the subdirs of wp-content. I believe our installation instructions indicate that the user needs to change permissions on wp-content so that it is writable by the server. Thus, we can take our cue from wp-content.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Use correct permissions, already!