yibin001
V2EX  ›  问与答

nginx 上传中文文件名出错

  •  
  •   yibin001 · May 30, 2014 · 3157 views
    This topic created in 4404 days ago, the information mentioned may be changed or developed.
    web框架是tornado,用nginx做反向代理。
    现在发现一个问题:
    如果上传的文件名中有中文的话,上传就会出错,而将文件名改成非中文就没事,这个是哪里不正确?

    http://tustore.qiniudn.com/gPVsGOFTNKAqeIHakXdw.jpg

    http://tustore.qiniudn.com/DasbcjwuBehxqfVWMiZO.jpg
    2 replies    2014-05-31 05:17:31 +08:00
    freefcw
        1
    freefcw  
       May 30, 2014
    你这不是在浏览器里面看的么,和你的nginx有什么关系?。。。。
    yibin001
        2
    yibin001  
    OP
       May 31, 2014
    @freefcw
    主要是这个问题我不知道如何描述~
    前端上传文件到服务器端,只要路径中有中文,就会挂掉。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2398 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 15:50 · PVG 23:50 · LAX 08:50 · JFK 11:50
    ♥ Do have faith in what you're doing.