Hi,

Cannot download any files with "private" file download method | drupal.org

I'm using FileField 6.x-3.0-alpha5 on drupal 6.6, and I have exactly the same problem. I logged in as the uid=1 user, but the access was denied.

Sorry if I'm missing something. Any help would be appreciated!

Juyama

Comments

vm’s picture

Did you do what that thread suggests ? enabling the upload.module and giving permissions ?

juyama’s picture

Thenks for your reply!

Yes, I checked it several times. I enabled upload.module and gave the permission, but it didn't work.

I can access to files which uploaded via upload.module.. I checked permissions of files uploaded via both FileField and upload.module on my server, and these files had same permission(644).

dopry’s picture

Status: Active » Postponed (maintainer needs more info)

Do you have access content, as uid 1 you should... you need to check out filefield_view_access() and what it is recieving. If you need field level permissions you need to enable the content permissions module and make sure you have access to view your field.

ar-jan’s picture

Did you find out what was wrong? I just installed a test install of D6.6 with:
Filefield 6.x-3.0-alpha5
Imagefield 6.x-3.0-alpha2

When I set file system to private download method, the image just does not appear, while logged in as user 1.
When set to public download method all is fine.

I have upload module activated.
Permissions are set (although as user 1 that doesn't really matter):
- view imagefield uploads
- access content
- view uploaded files

Very weird. Any clues?

dopry’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

You can't switch that setting safely... private downloads work for me currently.