Make WordPress Core

Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#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)

patch.txt​ (1.2 KB ) - added by error 21 years ago.
Use correct permissions, already!
dir_perms.diff​ (1.5 KB ) - added by ryan 21 years ago.

Download all attachments as: .zip

Change History (7)

@error
21 years ago

Use correct permissions, already!

#1 @markjaquith
21 years ago

  • Keywords bg|commit added; bg|2nd-opinion removed
  • Owner changed from anonymous to markjaquith
  • Status new → assigned

#2 @skeltoac
21 years ago

#1726 also mentions this.

#3 @ryan
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.

#4 @ryan
21 years ago

  • Resolution → fixed
  • Status assigned → closed

(In [2967]) Create upload dirs with same perms as wp-content. fixes #1784 #1726

#5 @(none)
20 years ago

  • Milestone 2.0

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.