Hi, I have a multisite drupal. I set all drupal sites with a private download because some of the sites are private.
When I try to download a file upload in a CCK, with private downloads, it don't work; but when I try with public downloads, it work.

Did I misconfigured something?

CommentFileSizeAuthor
#6 filefield_private_downloads.patch843 bytesjpetso
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dopry’s picture

I haven't developed or tested private files support. So you haven't misconfigured anything. Its just not an existing feature yet.

enboig’s picture

Is there intention to do so? I would really apreciate this

thanks

Marandb’s picture

I currently have a site running filefield with private files enabled. Don't know if there has been a recent fix or if it just works by default.

Anyway, just wanted to let you know.

-- Marandb

daleeman’s picture

I would like to see this too. Im in the process of figuring out how to do this, myself. If I come up with a patch, I'll be sure to post.

Thanks

daleeman’s picture

I would like to see this too. Im in the process of figuring out how to do this, myself. If I come up with a patch, I'll be sure to post.

Thanks

jpetso’s picture

Version: 4.7.x-1.x-dev » 6.x-3.x-dev
Component: User interface » Code
Category: support » bug
Status: Active » Needs review
FileSize
843 bytes

Analogous to the conceptually similar patch for imagefield, here's a patch to make private downloads work by clearing the field's session variable after storing the file.

Please review and apply (the patch is for HEAD).

jpetso’s picture

Status: Needs review » Fixed

Committed to HEAD. Filefield should now work with private downloads in all situations.

Anonymous’s picture

Status: Fixed » Closed (fixed)