I have a several content types, each with a cck filefield. Depending on the content type and the users, the files are saved in different locations in the Drupal file system: ../private/files/[uid]/content-type-a/files/ These folders are not created ahead of time, just upon file upload if it doesn't exist already.

When using the upload form, the files are saved in the proper place, and displayed properly in the node. However, when a user attempts to access their files through the IMCE file browser, the folders don't appear. I tried this through IMCE directly as well as using FileField Sources.

This is only for non user-1 users. User-1 has no problem seeing everything everywhere.

I've tested it, when a user uploads files via the IMCE browser, or through the TinyMCE image button, the files are saved in the proper location and can be viewed. But going through the file upload process via the cck filefield, they don't appear. The folders are given 775 permissions, could this be the problem? If so, can you point to where those folder permissions are set?

FYI, these registered users/roles are given 'upload files' and 'view upload files' permissions. In the IMCE settings, the profile set up for this role has been given Browse/Upload/Thumbnails/Resize permissions for everything in ../private/files/%uid and all subdirectories. Between this and the testing, I think the problem lies in the upload process or directory creation tool for CCK FileField.

Comments

cindyr’s picture

Status: Active » Closed (fixed)

Sorry, it's an IMCE thing, not a FileField thing. See http://drupal.org/node/864370