needed for advagg & any future on demand file generation module.

Comments

mikeytown2’s picture

in short:

function stage_file_proxy_init() {
  // make sure we're asking for a file in the files dir
  $file_dir = file_directory_path();
  if (strpos($_GET['q'], $file_dir) !== 0) {
    return;
  }

  $relative_path = substr($_GET['q'], strlen($file_dir) + 1);

  // Allow advagg requests through.
  if (strpos($relative_path, 'advagg_') === 0) {
    return;
  }
...
greggles’s picture

Status: Active » Postponed (maintainer needs more info)

Can you supply the fix in a patch?

Is this still an issue on 7.x-1.x?

NMI for the second question.

mikeytown2’s picture

I ended up making a module to do what I needed.
http://drupal.org/project/files_proxy
http://drupalcode.org/project/files_proxy.git/blob/0072ddca593cdb437b939...

My guess is it would still be an issue in D7 as the styles directory is used.
http://drupalcode.org/project/stage_file_proxy.git/blob/0c3de858e905188e...

BarisW’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (outdated)

Drupal 6 is no longer supported.