the filename is retrieved using get('serverfile')
if i dump get('serverfile') before setting the headers it looks just
fine in all cases.
I've also tried encoding the filename before using the
javax.mail.internet.mimeutility
<cfheader name="X-Accel-Redirect" value="/files/
#createObject('java','javax.mail.internet.MimeUtility').encodeWord(get('serverfile'),'utf-8','b')#"
charset="utf-8">
i've tried several values - this works as well except of course when
the filename contains non ascii characters which
nginx error reports:
15:05:30 [error] 3423#0: *254 open() "/srv/files/=" failed (2: No such
file or directory)
which looks like what is being sent is only an equals sign when the
mimeutility encoding is used.
On Oct 21, 2:35 pm, Alan Williamson <[EMAIL PROTECTED]> wrote:
> ok ... reasonable.
>
> What charset are you encoding it with?
>
> Can you give us an example of the CFHEADER you are using?
>
> Incidentally, how can you be sure the filename isn't garbled *before*
> you set it in CFHEADER?
>
> if you do a <cfoutput> for example on it, does it look fine?
>
> Brad B. wrote:
> > yep it's proxying to a Resin container running OpenBD, OpenBD sends
> > the header x-accel-redirect and nginx intercepts it and serves the
> > file set in that header's value. In this case, OpenBD is sending
> > garbled characters when the filename contains characters other than
> > ascii characters.
>
> --
> Alan Williamson
> Registrationless email/sms reminders: http://yourli.st/
> blog: http://alan.blog-city.com/
--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
http://groups.google.com/group/openbd?hl=en
official blog @ http://blog.openbluedragon.org/
!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---