summaryrefslogtreecommitdiff
path: root/django/core/files
Commit message (Collapse)AuthorAgeFilesLines
* Fixed some typos in comments, docstrings, and tests.Liyang Zhang2023-03-201-1/+1
|
* Fixed #34294 -- Protected django.core.files.locks against argtypes ↵Simon Sawicki2023-01-261-3/+4
| | | | redefinition on Windows.
* Refs #26029 -- Deprecated DEFAULT_FILE_STORAGE and STATICFILES_STORAGE settings.Jarosław Wygoda2023-01-122-3/+21
|
* Fixed #26029 -- Allowed configuring custom file storage backends.Jarosław Wygoda2023-01-122-0/+51
|
* Fixed #34110 -- Added in-memory file storage.Francesco Panico2023-01-102-0/+292
| | | | | Thanks Paolo Melchiorre, Carlton Gibson, and Mariusz Felisiak for reviews.
* Refs #34110 -- Added StorageSettingsMixin.Francesco Panico2022-11-112-16/+17
|
* Refs #34110 -- Reorganized django.core.files.storage into a separate module.Francesco Panico2022-11-113-209/+219
|
* Fixed #29027 -- Fixed file_move_safe() crash when moving files with SELinux.Yuri Konotopov2022-10-241-6/+8
| | | | Thanks Florian Apolloner for the review.
* Fixed #32604 -- Made file upload respect group id when uploading to a ↵Mateo Radman2022-04-111-0/+12
| | | | temporary file.
* Refs #32365 -- Removed internal uses of utils.timezone.utc alias.Carlton Gibson2022-03-241-2/+1
| | | | | Remaining test case ensures that uses of the alias are mapped canonically by the migration writer.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-073-3/+7
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-0710-128/+248
|
* Fixed CVE-2021-45452 -- Fixed potential path traversal in storage subsystem.Florian Apolloner2022-01-041-1/+8
| | | | Thanks to Dennis Brinkrolf for the report.
* Updated various links to HTTPS and new locations.Mariusz Felisiak2021-12-021-1/+1
| | | | Co-Authored-By: Nick Pope <nick@nickpope.me.uk>
* Fixed #33079 -- Fixed get_image_dimensions() on nonexistent images.Stefanos I. Tsaklidis2021-09-021-1/+4
| | | | Thanks Nick Pope for the review.
* Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵David Smith2021-07-291-1/+1
| | | | appropriate.
* Fixed #32821 -- Updated os.scandir() uses to use a context manager.Chris Jerdonek2021-06-071-5/+6
|
* Fixed #28154 -- Prevented infinite loop in FileSystemStorage.save() when a ↵Jacob Walls2021-06-021-1/+1
| | | | broken symlink with the same name exists.
* Fixed #32718 -- Relaxed file name validation in FileField.Mariusz Felisiak2021-05-131-5/+15
| | | | | | | | | | | | | - Validate filename returned by FileField.upload_to() not a filename passed to the FileField.generate_filename() (upload_to() may completely ignored passed filename). - Allow relative paths (without dot segments) in the generated filename. Thanks to Jakub Kleň for the report and review. Thanks to all folks for checking this patch on existing projects. Thanks Florian Apolloner and Markus Holtermann for the discussion and implementation idea. Regression in 0b79eb36915d178aef5c6a7bbce71b1e76d376d3.
* Fixed #32366 -- Updated datetime module usage to recommended approach.Nick Pope2021-05-121-5/+2
| | | | | | | - Replaced datetime.utcnow() with datetime.now(). - Replaced datetime.utcfromtimestamp() with datetime.fromtimestamp(). - Replaced datetime.utctimetuple() with datetime.timetuple(). - Replaced calendar.timegm() and datetime.utctimetuple() with datetime.timestamp().
* Fixed CVE-2021-31542 -- Tightened path & file name sanitation in file uploads.Florian Apolloner2021-05-043-0/+26
|
* Refs #32508 -- Raised Type/ValueError instead of using "assert" in django.core.Daniyal2021-03-191-1/+2
|
* 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>
* Fixed #31989 -- Fixed return value of ↵Hasan Ramezani2020-09-151-4/+7
| | | | django.core.files.locks.lock()/unlock() on POSIX systems.
* Fixed CVE-2020-24583, #31921 -- Fixed permissions on intermediate-level ↵Mariusz Felisiak2020-09-011-3/+3
| | | | | | static and storage directories on Python 3.7+. Thanks WhiteSage for the report.
* Bumped minimum isort version to 5.1.0.David Smith2020-07-301-2/+4
| | | | | Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable.
* Refs #28428 -- Made FileSystemStorage.save() to support pathlib.Path.Hasan Ramezani2019-10-311-1/+1
|
* Fixed #30736 -- Added Storage.get_alternative_name() to allow customization.yukihira19922019-08-301-5/+12
|
* Corrected several typos in string literals and test names.Min ho Kim2019-08-071-1/+1
|
* Fixed "byte string" typo in various docs and comments.Mariusz Felisiak2019-03-281-3/+3
|
* Fixed #30147 -- Simplified directory creation with os.makedirs(..., ↵Jon Dufresne2019-01-311-18/+12
| | | | exist_ok=True).
* Fixed #30137 -- Replaced OSError aliases with the canonical OSError.Jon Dufresne2019-01-283-4/+4
| | | | Used more specific errors (e.g. FileExistsError) as appropriate.
* Fixed #29890 -- Fixed FileSystemStorage crash if concurrent saves try to ↵Tim Graham2018-10-311-2/+2
| | | | | | create the same directory. Regression in 632c4ffd9cb1da273303bcd8005fff216506c795.
* Fixed #29857 -- Added get_storage_class to django.core.files.storage.__all__.Tim Graham2018-10-171-1/+4
|
* Capitalized "Python" in docs and comments.Jon Dufresne2018-10-091-1/+1
|
* Refs #29784 -- Switched to https:// links where available.Jon Dufresne2018-09-262-3/+3
|
* Fixed #29705 -- Fixed ImageField RuntimeError crash for WebP files.winkidney2018-08-231-0/+4
|
* Fixed #29689 -- Improved performance of FileSystemStorage.listdir() and ↵Federico Bond2018-08-201-4/+4
| | | | FilePathField with os.scandir().
* Fixed typo in ContentFile docstring.Thomas Grainger2018-07-271-1/+1
|
* Fixed #28144 -- Added FileSystemStorage.OS_OPEN_FLAGS to allow customization.Jon Prindiville2018-06-291-5/+4
|
* Fixed #29514 -- Reverted "Used datetime.timezone.utc instead of pytz.utc for ↵Tim Graham2018-06-281-1/+5
| | | | | | | better performance." This reverts commit 27ca5ce19f5f184018a61611c1bc319113b1d107 due to a regression.
* Used datetime.timezone.utc instead of pytz.utc for better performance.Sergey Fedoseev2018-03-201-5/+1
|
* Removed redundant UploadedFile.DEFAULT_CHUNK_SIZE.Sergey Fedoseev2018-03-122-2/+1
| | | The same value is inherited from File.
* Used cached_property for File.size.Sergey Fedoseev2018-03-101-13/+4
|
* Fixed #29188 -- Fixed ContentFile.size after a write().Alex Stovbur2018-03-081-0/+4
|
* Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵Дилян Палаузов2018-01-121-4/+1
| | | | continue statements.
* Fixed #28982 -- Simplified code with and/or.Дилян Палаузов2018-01-031-6/+2
|
* Fixed #28776 -- Fixed a/an/and typos in docs and comments.Дилян Палаузов2017-11-061-1/+1
|
* Removed unnecessary parens in various code.Mariusz Felisiak2017-09-132-3/+3
|
* Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham2017-09-072-12/+16
| | | | This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.