[support] Bizarre behavior with uploaded PDF files
donald at fane.com
donald at fane.com
Thu Jan 21 03:23:08 UTC 2010
Hi Bob,
There are two different ways those files can be delivered to the
browser. One way is the files are really where the link says it is,
and the browser gets them from apache or IIS directly.
Some people like to hide certain files from public access. So they put
their files somewhere else, and Drupal goes and gets the file when
they're requested. The file is read, a header telling the browser it's
a pdf file is slapped in front of it, and it's sent out. That's called
a private file system.
It's that second method that can cause problems.
The setting is at admin/settings/file-system if you're using mod_rewrite.
It will work better if that's set to public.
-Don-
Quoting Bob Smither <Smither at C-C-I.com>:
>
> On Wed, 2010-01-20 at 18:16 -0700, donald at fane.com wrote:
>> Are you using the private file system? I've seen problems with the
>> header options with some browsers, they viewed the files as security
>> problems.
>>
>> I ended up having to write my own get function and include the extra
>> header options.
>
> Thanks for the reply Don!
>
> I'm not sure I understand the question (which likely means I am not!).
> Private file system? The setup is pretty basic D5, using the file
> upload feature.
>
> --
> Bob Smither, PhD Circuit Concepts, Inc.
> =========================================================================
> recursive, adj. - See 'recursive'
> =========================================================================
> Smither at C-C-I.Com http://www.C-C-I.Com 281-331-2744(office) -4616(fax)
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
More information about the support
mailing list