[wp-trac] [WordPress Trac] #20330: Differences between creating folders for plugins and uploaded media (problem with safe_mode)

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 30 11:38:41 UTC 2012


#20330: Differences between creating folders for plugins and uploaded media
(problem with safe_mode)
--------------------------+------------------------------
 Reporter:  pavelevap     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Upload        |     Version:  3.3.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by pavelevap):

 Yes, I also tried to create uploads folder manually and use CHMOD 0777,
 but uploading does not work for year/month folders. There is following
 error:

 {{{
 "Testing-picture-50g.jpg" has failed to upload due to an error
 Unable to create directory /data/www/h/domain.cz/public_html/test/wp-
 content/uploads/2012/03. Is its parent directory writable by the server?
 }}}

 There is folder "2012" automatically created, but "03" folder is not
 created. Folder 2012 has CHMOD 0777, but is owned probably by another
 user, because it is not possible to edit it through FTP client - "Cannot
 change attributes of remote files!"

 I understand that creating folders is easier through FTP, but this way
 would be very usefull for other users with safe_mode problems. Is it
 possible to use FTP method with the help of any hook? Then it would be
 easy to make a safe_mode support plugin. And FTP credentials can be stored
 in wp-config.php as FTP_PASS and other constants?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20330#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list