Commit Graph

43 Commits

Author SHA1 Message Date
Grey Li 84aa8706c0
Remove the mention of Flask-Uploads in uploading docs 2021-08-14 05:10:45 -07:00
David Lord dc11cdb4a4
move send_file and send_from_directory to Werkzeug
The implementations were moved to Werkzeug, Flask's functions become
wrappers around Werkzeug to pass some Flask-specific values.

cache_timeout is renamed to max_age. SEND_FILE_MAX_AGE_DEFAULT,
app.send_file_max_age_default, and app.get_send_file_max_age defaults
to None. This tells the browser to use conditional requests rather than
a 12 hour cache.

attachment_filename is renamed to download_name, and is always sent if
a name is known.

Deprecate helpers.safe_join in favor of werkzeug.utils.safe_join.

Removed most of the send_file tests, they're tested in Werkzeug.

In the file upload example, renamed the uploaded_file view to
download_file to avoid a common source of confusion.
2020-11-05 09:27:52 -08:00
miquelvir 598c56c498
fix grammar (#3769) 2020-09-28 06:21:59 -07:00
David Lord aab20ad431
fix typo 2020-07-08 08:26:21 -07:00
Armin Ronacher 4a1acc8b5f Some small doc fixes 2020-07-08 15:53:43 +02:00
Jeff Widman c432d8b2bc
Fix docs link for Flask-Uploads 2020-05-08 12:42:52 -07:00
David Lord 171aabc87d
remove unused ref directives
replace page refs with doc directives
2020-04-04 12:57:14 -07:00
David Lord 40eadfc52a
Merge branch '1.1.x' 2019-09-23 08:38:29 -07:00
David Lord 746d9181d7
Merge branch '1.0.x' into 1.1.x 2019-09-23 08:38:11 -07:00
David Lord e01b68e7ee
update patterns, snippets, extensions docs 2019-09-23 08:19:40 -07:00
Eido95 b33e89935a
docs: Change max content length value to megabyte
16 * 1024 * 1024 = 16 MiB (Mebibyte)
16 * 1000 * 1000 = 16 MB (Megabyte)

The example is in megabytes, not in mebibytes.
2019-08-13 11:02:56 +03:00
Gabriel Saldanha c5af1be70f 🎨 Use set literal instead of set method 2018-06-27 08:58:26 -03:00
Yao Long 9b6878af5a
document error on fileupload
after file uploaded, it should redirect for uploaded_file page instead
of upload page
2018-04-27 11:04:35 -07:00
Grey Li 2f9be68a81
Add tips for 413 connection reset issue 2018-04-09 01:30:15 -07:00
Nickatak a9646716d2 Fix typo in example. 2018-01-14 16:02:43 -08:00
Mrn Om c352714478 Fix grammar/typos 2017-10-11 16:47:26 +03:00
Adam Geitgey ae1ac2053b Correct imports in file upload example (#2230)
The example code uses `flash` but doesn't import it. So the code as written doesn't work.

This simply adds `flash` to the list of imports in the sample code.
2017-04-04 22:26:40 +02:00
Static f5adb61b28 Fix typos/grammar in docs (#2201) 2017-03-06 14:05:59 +01:00
Sebastian Kalinowski fca5577a00 Remove extra HTML tag from fileupload docs (#2141) 2017-02-28 14:05:09 +09:00
Jeff Widman bb0e755c80 Migrate various docs links to https (#2180)
Also fixed a few outdated links
2017-02-11 10:43:11 +01:00
Shakib Hossain fe53da45c5 Update allowed_file function in fileuploads.rst
Update allowed_file function to accept lowercase and uppercase file extensions
2016-07-16 21:59:44 +06:00
David Lord cd1a9b7d54 remove unnecessary form action attributes 2016-06-22 15:01:41 -07:00
Eric Dill 52daeffdc9 DOC: Remove gendered language 2016-02-09 14:24:09 -05:00
Markus Unterwaditzer 0a492a09a8 Restructure Upload Progress Bars
- Removed dropzone.js, it hasn't been around long enough, maybe we need
  to update this in two years again.
- jQuery should be a proper rst link.
2015-03-04 18:43:59 +01:00
Sourya Vatsyayan a6ea6335a5 Updated file uploads progress bar section 2015-01-04 13:00:51 +05:30
Sourya Vatsyayan d2a380451b URL generation rule explained 2015-01-03 20:30:30 +05:30
defuz 5562acfdfc docs: fix warnings 2014-11-05 08:04:06 +03:00
defuz d338dc8a13 docs: ``.html``, ``.py`` 2014-11-05 07:52:04 +03:00
defuz 17eee81da0 docs: ``Flask-Uploads``, ``X-Forwarded-Host`` 2014-11-05 07:23:47 +03:00
defuz ad011bc32d docs: ``DEBUG``, ``SERVER_NAME``, ``PATH_INFO`` 2014-11-05 07:10:49 +03:00
Wing 02b02543b3 Doc for add check upload file 2014-05-17 14:44:34 +08:00
Daniel Neuhäuser e89c867d62 Switch packages.python.org to pythonhosted.org 2014-04-26 01:35:37 +02:00
Spittie de3dbd3125 Update fileuploads.rst
secure_filename is under werkzeug.utils (http://werkzeug.pocoo.org/docs/utils/)
2014-01-12 02:54:08 +01:00
Felix Hummel 8d2daea327 be consistent with app.config['UPLOAD_FOLDER']
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
2011-07-15 19:02:19 +02:00
Jeffrey Finkelstein 12761bd02c fixed pronoun gender in documentation 2011-06-26 21:43:48 -04:00
matt swanson 4046d3bd30 fixing cross-referenced links on fileupload patterns page 2011-03-13 15:47:40 -09:00
Ron DuPlain 6875a057ec Fixed small typos in docs. Added a cross-ref. 2010-10-07 19:32:07 +08:00
Armin Ronacher dbb3620792 Fixed an rst error 2010-07-15 21:22:11 +02:00
Armin Ronacher 54ebd88f45 Documented MAX_CONTENT_LENGTH in the file upload docs and linked to Flask-Uploads 2010-07-15 14:39:49 +02:00
Armin Ronacher f1a6fbe250 send_from_directory > SharedDataMiddleware 2010-07-06 20:28:48 +02:00
Armin Ronacher 854e0e26d1 Fixed some documentation issues. This fixes #41. 2010-05-18 18:05:05 +02:00
Armin Ronacher ea5e654e9e Added a documentation chapter about logging 2010-05-17 22:46:35 +02:00
Armin Ronacher 85d43079d1 Added missing file (fileupload docs) 2010-04-25 03:46:42 +02:00