summaryrefslogtreecommitdiff
path: root/django/core/files/uploadhandler.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-1/+4
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-17/+44
|
* Fixed #30422 -- Made TemporaryFileUploadHandler handle interrupted uploads.aryan2020-09-301-1/+17
| | | | | | This patch allows upload handlers to handle interrupted uploads. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Corrected several typos in string literals and test names.Min ho Kim2019-08-071-1/+1
|
* Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵Дилян Палаузов2018-01-121-4/+1
| | | | continue statements.
* Removed unneeded __init__() methods.Sergey Fedoseev2017-09-071-3/+0
|
* Refs #27656 -- Updated django.core docstring verbs according to PEP 257.Anton Samarchyan2017-02-211-7/+4
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-3/+3
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-191-1/+1
|
* Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz2017-01-181-2/+0
|
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-311-1/+0
|
* Fixed #24664 -- Removed misleading arg name from ↵David Danier2015-04-201-2/+2
| | | | TemporaryFileUploadHandler.new_file
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-1/+3
|
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-1/+1
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Fixed #21674 -- Deprecated the import_by_path() function in favor of ↵Berker Peksag2014-02-081-2/+2
| | | | | | import_string(). Thanks Aymeric Augustin for the suggestion and review.
* Fixed flake8 E251 violationsMilton Mazzarri2013-11-031-7/+7
|
* Fixed all E261 warningscoagulant2013-11-021-1/+1
|
* More attacking E302 violatorsAlex Gaynor2013-11-021-0/+7
|
* Start attacking E231 violationsAlex Gaynor2013-10-241-3/+5
|
* Fixed assorted flake8 errors.Tim Graham2013-10-111-0/+2
|
* Fixed #20841 -- Added messages to NotImplementedErrorsGregor MacGregor2013-09-101-2/+2
| | | | Thanks joseph at vertstudios.com for the suggestion.
* Fixed #13721 -- Added UploadedFile.content_type_extra.Benjamin Kagia2013-07-111-3/+6
| | | | Thanks Waldemar Kornewald and mvschaik for work on the patch.
* Fixed #17061 -- Factored out importing object from a dotted pathClaude Paroz2013-02-041-16/+2
| | | | Thanks Carl Meyer for the report.
* [py3] Refactored __unicode__ to __str__.Aymeric Augustin2012-08-121-1/+3
| | | | | | | | | * Renamed the __unicode__ methods * Applied the python_2_unicode_compatible decorator * Removed the StrAndUnicode mix-in that is superseded by python_2_unicode_compatible * Kept the __unicode__ methods in classes that specifically test it under Python 2
* Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz2012-06-071-2/+4
| | | | | Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
* Replaced cStringIO.StringIO by io.BytesIO.Claude Paroz2012-05-051-6/+3
| | | | | Also replaced StringIO.StringIO by BytesIO in some other appropriate places. StringIO is not available in Python 3.
* Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz2012-04-291-3/+4
| | | | | Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
* Remove the executable flag from uploadhandler.py, it wasn't. Thanks to ↵Alex Gaynor2010-11-111-0/+0
| | | | | | Florian for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14528 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #14577 -- fixed a docstring typo. Thanks to dauerbaustelle for the ↵Alex Gaynor2010-10-271-1/+1
| | | | | | report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14364 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #11066 -- Corrected 15 duplicate "the"s found in docs and code ↵Karen Tracey2009-05-171-1/+1
| | | | | | comments. Thanks kaikuehne. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10801 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #11055: fixed a regression in [10717] that caused uploaded files to ↵Jacob Kaplan-Moss2009-05-111-0/+1
| | | | | | have incorrectly set file pointers. They're now, as before, reset to the beginning upon successful upload. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10739 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #8193: all dynamic imports in Django are now done correctly. I know ↵Jacob Kaplan-Moss2009-03-181-1/+2
| | | | | | this because Brett Cannon borrowed the time machine and brought Python 2.7's '`importlib` back for inclusion in Django. Thanks for the patch-from-the-future, Brett! git-svn-id: http://code.djangoproject.com/svn/django/trunk@10088 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #9399 -- Added StopFutureHandlers to export list in file handling.Malcolm Tredinnick2009-03-081-2/+2
| | | | | | Thanks, George Vilches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9992 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7847 -- Removed a whole bunch of unused imports from throughout the ↵Adrian Holovaty2008-07-221-2/+1
| | | | | | codebase. Thanks, julien git-svn-id: http://code.djangoproject.com/svn/django/trunk@8046 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7614: the quickening has come, and there now is only one ↵Jacob Kaplan-Moss2008-07-071-37/+6
| | | | | | | | | | | | | UploadedFile. On top of that, UploadedFile's interface has been improved: * The API now more closely matches a proper file API. This unfortunately means a few backwards-incompatible renamings; see BackwardsIncompatibleChanges. This refs #7593. * While we were at it, renamed chunk() to chunks() to clarify that it's an iterator. * Temporary uploaded files now property use the tempfile library behind the scenes which should ensure better cleanup of tempfiles (refs #7593 again). Thanks to Mike Axiak for the bulk of this patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7859 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7590: made UploadedFile subclasses' __init__ methods sane.Jacob Kaplan-Moss2008-07-011-5/+15
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@7817 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #2070: refactored Django's file upload capabilities.Jacob Kaplan-Moss2008-07-011-0/+235
A description of the new features can be found in the new [http://www.djangoproject.com/documentation/upload_handing/ upload handling documentation]; the executive summary is that Django will now happily handle uploads of large files without issues. This changes the representation of uploaded files from dictionaries to bona fide objects; see BackwardsIncompatibleChanges for details. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7814 bcc190cf-cafb-0310-a4f2-bffc1f526a37