Merge branch 'master' of github.com:mitsuhiko/flask

This commit is contained in:
Armin Ronacher 2010-06-07 21:53:58 +02:00
commit 223d44dca8
3 changed files with 3 additions and 4 deletions

@ -1 +0,0 @@
Subproject commit c775271cf77795a5358a13b2c2d08c0f61062557

View file

@ -63,7 +63,7 @@ the XHTML syntax over the syntax defined by the specification.
In 2007, the specification was adopted as the basis of a new HTML
specification under the umbrella of the W3C, known as HTML5. Currently,
it appears that XHTML is losing traction, as the XHTML 2 working group has
een disbanded and HTML5 is being implemented by all major browser vendors.
been disbanded and HTML5 is being implemented by all major browser vendors.
HTML versus XHTML
-----------------
@ -204,4 +204,4 @@ reasons given above:
- It has the support of most browser vendors behind it.
- It is much easier to write, and more compact.
For most applications, it is undoubtably better to use HTML5 than XHTML.
For most applications, it is undoubtedly better to use HTML5 than XHTML.

View file

@ -561,7 +561,7 @@ Werkzeug provides for you::
@app.route('/upload', methods=['GET', 'POST'])
def upload_file():
if request.method == 'POST':
f= request.files['the_file']
f = request.files['the_file']
f.save('/var/www/uploads/' + secure_filename(f.filename))
...