Is it possible that this works with private/public mixed files too?
I am thinkig about that in a process of developing a module that lets a user seperatly chose what image styles are private and which not. Like Thumbnails are not protected and in public, but high resolution styles are protected an stay in private.

Comments

wim leers’s picture

Title: Drupal 7 Private Files » Drupal 7 private files support
Version: 7.x-2.0-beta1 » 7.x-2.x-dev
Component: Miscellaneous » Module
Category: support » feature
Priority: Normal » Minor
Status: Active » Postponed

Private is not supported for now.

wim leers’s picture

wim leers’s picture

Title: Drupal 7 private files support » Private files support
wim leers’s picture

Title: Private files support » Document private files support
Component: Module » Documentation
Assigned: Unassigned » wim leers
Category: feature » task
Status: Postponed » Needs review

From #1115686-5: Add support for any type of file referenced in node bodies (currently only images):

The problem is that it's by definition not supported to serve private files from a CDN, because then the "private" nature of the file can no longer be guaranteed. Some CDNs support this, but they all have different mechanisms…

So, the answer here really is the following:

1. the CDN module is *compatible* with "private files" in the sense that it won't break them; they'll continue to work the same way
2. the CDN module does not *support* "private files" in the sense that it cannot serve files in a protected manner from a CDN

But, note that some CDNs *do* support "private files" in the second sense. The problem is that not every CDN supports this and virtually every one that does support it has its own mechanism to do so.

The following should be added the documentation. (Plus I should test that this is actually the case. It definitely is true that it *can* work this way.)

marcoka’s picture

you are right. i haven thought about that.

if a cdn support supports private files, it somehow needs to provide an api (cdn provider) function to check the access, and this is not standardized i bet. So implementing this seems to be a custom job for every cdn.

wim leers’s picture

Exactly :)

wim leers’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.