Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
919ecec9
Commit
919ecec9
authored
Mar 06, 2015
by
Jacob Magnusson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whoops. Wrong doc fix
😊
parent
b5951979
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
upload.py
flask_admin/form/upload.py
+2
-2
No files found.
flask_admin/form/upload.py
View file @
919ecec9
...
@@ -152,7 +152,7 @@ class FileUploadField(fields.StringField):
...
@@ -152,7 +152,7 @@ class FileUploadField(fields.StringField):
upload = FileUploadField('File', namegen=prefix_name)
upload = FileUploadField('File', namegen=prefix_name)
:param allowed_extensions:
:param allowed_extensions:
List of allowed extensions. If not provided,
then gif, jpg, jpeg, png and tiff will be allowed
.
List of allowed extensions. If not provided,
will allow any file
.
"""
"""
self
.
base_path
=
base_path
self
.
base_path
=
base_path
self
.
relative_path
=
relative_path
self
.
relative_path
=
relative_path
...
@@ -310,7 +310,7 @@ class ImageUploadField(FileUploadField):
...
@@ -310,7 +310,7 @@ class ImageUploadField(FileUploadField):
upload = FileUploadField('File', namegen=prefix_name)
upload = FileUploadField('File', namegen=prefix_name)
:param allowed_extensions:
:param allowed_extensions:
List of allowed extensions. If not provided,
will allow any file
.
List of allowed extensions. If not provided,
then gif, jpg, jpeg, png and tiff will be allowed
.
:param max_size:
:param max_size:
Tuple of (width, height, force) or None. If provided, Flask-Admin will
Tuple of (width, height, force) or None. If provided, Flask-Admin will
resize image to the desired size.
resize image to the desired size.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment