Closed (fixed)
Project:
Drupal core
Version:
5.x-dev
Component:
file system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jul 2006 at 21:28 UTC
Updated:
28 Dec 2006 at 16:30 UTC
Going to admin > settings > users before admin > settings > file system creates '/pictures' not '/files/pictures'. So then I tried to upload my picture and got an upload error.
Returning to admin > settings > users AFTER going to file system created /files/pictures and I could upload just fine.
Do users really have to manually go to admin > settings > file system THEN admin > settings > users to create these directories properly. Why not automate it as part of the installation?
Comments
Comment #1
magico commentedAgree. Required folders should be create when doing Drupal instalation.
Comment #2
RobRoy commentedDo a clean install of Drupal, enable upload module for pages, then create a new node with an uploaded file attachment (do not create a files directory or access the "File system" settings page yet). The file will appear to have uploaded, but when you click on the link a Page Not Found error is displayed. Why? Because you didn't go to http://example.com/admin/settings/file-system first to create your "files" directory.
No watchdog or error message is generate by upload.module either, it just silently fails. I've submitted a seperate issue to upload.module as this one should mainly deal with where we should be attempting to create the "files" directory. It could result that the answer is "won't fix" and we'll just include a file_check_directory() in upload.module somewhere so the the first upload creates the "files" directory like the "File system" settings page.
There are two issues here, the critical one (http://drupal.org/node/98391) is with upload.module silently failing, the other (this one) is figuring out where/if to automatically create the "files" directory
Comment #3
webernet commentedAn error is now generated by the status report if the files directory hasn't been setup.
Comment #4
(not verified) commented