推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
sylvos
V2EX  ›  Python

flask 文件上传时如何指定默认路径?

  •  
  •   sylvos · Jan 9, 2017 · 4407 views
    This topic created in 3545 days ago, the information mentioned may be changed or developed.
    用 flask 做了一个文件上传功能,如何在“ Browse ”里面指定默认路径,比如 C:\Documents and Settings\li.ming\.qq.xls ,那样就可以直接点击“ submit ”,节省一步操作,请前辈指点下,谢谢。
    awanabe
        1
    awanabe  
       Jan 9, 2017
    file input 不支持 default 值
    awanabe
        2
    awanabe  
       Jan 9, 2017
    ps , 现代浏览器都自带沙盒,无法直接访问外部文件
    sylvos
        3
    sylvos  
    OP
       Jan 9, 2017
    @awanabe OK ,谢谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1101 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:42 · PVG 07:42 · LAX 16:42 · JFK 19:42
    ♥ Do have faith in what you're doing.