擅长:python、mysql、java
<p>米格尔·格林伯格(Miguel Grinberg)本周刚刚就你的问题写了一篇精彩的博文:</p>
<p><a href="https://blog.miguelgrinberg.com/post/handling-file-uploads-with-flask" rel="nofollow noreferrer">https://blog.miguelgrinberg.com/post/handling-file-uploads-with-flask</a></p>
<p>如果你想在你的手机上试用,你必须先保存上传的文件,然后再为它们提供服务。看看Flask的<code>send_from_directory</code>函数</p>