diff options
author | Marcel Hellkamp <marc@gsites.de> | 2013-10-18 07:55:24 -0700 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2013-10-18 07:55:24 -0700 |
commit | 1f543b1fcb046437311633b1e11ed221e64804a6 (patch) | |
tree | dad513b2d8228406a288acd5c078f0fd4a691d37 /docs | |
parent | 162d5bf071b30f11d8dc186470cf913d16d0a084 (diff) | |
parent | de7723ed9a8a73aa5fe2ef34593cc84a685550c0 (diff) | |
download | bottle-1f543b1fcb046437311633b1e11ed221e64804a6.tar.gz |
Merge pull request #555 from espern/master
Fixed an error in tutorial file
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/tutorial.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 0e72a26..410882b 100755 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -663,7 +663,7 @@ Bottle stores file uploads in :attr:`BaseRequest.files` as :class:`FileUpload` i category = request.forms.get('category') upload = request.files.get('upload') name, ext = os.path.splitext(upload.filename) - if ext not in ('png','jpg','jpeg'): + if ext not in ('.png','.jpg','.jpeg'): return 'File extension not allowed.' save_path = get_save_path_for_category(category) |