In preparation for Drupal 6, I want to move all the files into the {files} table and use {audio_image} to link files to nodes. The attached patch takes care of the database end of things but I need to implement hook_file_download() to control access to the images.

Comments

drewish’s picture

StatusFileSize
new13.47 KB

this implements hook_file_download() but i've realized that this will run into problems when: private file transfers, upload module enabled, users don't have 'view uploaded files' permission... not sure if there's an easy way to work around this. i may have to postpone this until the upgrade to Drupal 6.

drewish’s picture

Status: Needs work » Closed (duplicate)

totally forgot about this... ended up re-implementing it here #315152: Move file info from {audio} to {files}