Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I want to know how scald atom files could support privacy delivery, use of private file system of drupal ?
Or is it just for public use of media ?
Thanks.
Comments
Comment #1
jcisio CreditAttribution: jcisio commentedGeneral speaking, Scald already has its own access control system, which is better than the private file system, and work with all kind of media. Private file system is just a schema for local files.
That being said, we can extend Scald Image to support private file system (by choosing a destination public:// or private:// when uploading a file). This would be a feature request for 1.1 (we should have 1.0 very soon). Patches are welcome.
Comment #2
jcisio CreditAttribution: jcisio commentedComment #3
jcisio CreditAttribution: jcisio commentedInstead of proposing scheme choices when uploading file (as suggestd #1), which is inconsistent with field settings, now the scheme choice is per bundle. Of course contrib module can change that to per atom (using hook_form_alter() etc.).
With that direction, private file support turns out quite easy: commit e53bed3. Tests are also added with 841e5ec.
This is the last issue with scald-1.1 tag.
Comment #5
Shiraz DindarFor anyone like me confused by this, there seems to be a missing part to this equation, and that's actually setting the scald atom locations to private. This seems to do the trick:
Note that scald atoms otherwise are saved into public (except images, where the atom is saved to the thumbnail field, and inherits whatever that field is set to), and although scald has its own atom-level permissions, any anon user can view a public file directly via its URL, as per the way Drupal works.
Comment #6
Shiraz Dindarie. I didn't see where you can set the file scheme per bundle, as mentioned in comment #3. If someone else sees this, please let me know.
Comment #7
nagy.balint CreditAttribution: nagy.balint commentedThe scald_file module does the same as the image provider, except it uses a file field to take the settings from. So its possible to set it up there the same way.