
keith.phua at gmail
Sep 28, 2011, 3:11 AM
Post #12 of 13
(875 views)
Permalink
|
|
Re: Upload media file includes path info in IE.
[In reply to]
|
|
Just to clarify my solution in case somebody has the same problem as me :) Under Bric::App::ApacheConfig: Look at ### mod_perl 2 ## section. Change: my @config = { ..... ' .....', ' Set Handler perl-script', ### originally set to 'modperl' ' ....', }; Regards, Keith On Wed, Sep 28, 2011 at 9:38 AM, Keith Phua <keith.phua [at] gmail> wrote: > Hi All, > > Thanks for all your help. I m not sure if it's a bug but I managed to > resolve it. > > When I print out ENV{HTTP_USER_AGENT}, it throw out nothing!!. So I guess > the %ENV are not passed to mod_perl. So I take a look at ApacheConfig.pm > and discover that under modperl 2 section, SetHandler is set to 'modperl'. > Under mod perl2 documentation, set handler mod perl will not populate %ENV > to gain performance. So I reset the handler to 'perl-script' and it work as > before. > > Once again, many thanks. > > Regards, > > Keith > > On Wed, Sep 28, 2011 at 1:35 AM, David E. Wheeler <david [at] kineticode>wrote: > >> On Sep 27, 2011, at 10:09 AM, Adam Wilson wrote: >> >> > What if the file is uploaded from another machine? Something like >> \\otherserver\filesilike\picture.bmp? >> > I know that if I try to grab something from the web, it is >> downloaded as a local file and uploaded from there, but I would think >> network paths would upload directly from that location and completely escape >> either of the regex below. >> >> I don't know; I don't us Windows. But if you all figure something out and >> send a pull request, I'll be happy to merge it (into all current branches). >> >> Best, >> >> David >> >> >
|