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