Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed some typos in comments, docstrings, and tests. | Liyang Zhang | 2023-03-20 | 1 | -1/+1 |
| | |||||
* | Fixed #34294 -- Protected django.core.files.locks against argtypes ↵ | Simon Sawicki | 2023-01-26 | 1 | -3/+4 |
| | | | | redefinition on Windows. | ||||
* | Refs #26029 -- Deprecated DEFAULT_FILE_STORAGE and STATICFILES_STORAGE settings. | Jarosław Wygoda | 2023-01-12 | 2 | -3/+21 |
| | |||||
* | Fixed #26029 -- Allowed configuring custom file storage backends. | Jarosław Wygoda | 2023-01-12 | 2 | -0/+51 |
| | |||||
* | Fixed #34110 -- Added in-memory file storage. | Francesco Panico | 2023-01-10 | 2 | -0/+292 |
| | | | | | Thanks Paolo Melchiorre, Carlton Gibson, and Mariusz Felisiak for reviews. | ||||
* | Refs #34110 -- Added StorageSettingsMixin. | Francesco Panico | 2022-11-11 | 2 | -16/+17 |
| | |||||
* | Refs #34110 -- Reorganized django.core.files.storage into a separate module. | Francesco Panico | 2022-11-11 | 3 | -209/+219 |
| | |||||
* | Fixed #29027 -- Fixed file_move_safe() crash when moving files with SELinux. | Yuri Konotopov | 2022-10-24 | 1 | -6/+8 |
| | | | | Thanks Florian Apolloner for the review. | ||||
* | Fixed #32604 -- Made file upload respect group id when uploading to a ↵ | Mateo Radman | 2022-04-11 | 1 | -0/+12 |
| | | | | temporary file. | ||||
* | Refs #32365 -- Removed internal uses of utils.timezone.utc alias. | Carlton Gibson | 2022-03-24 | 1 | -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 Felisiak | 2022-02-07 | 3 | -3/+7 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 10 | -128/+248 |
| | |||||
* | Fixed CVE-2021-45452 -- Fixed potential path traversal in storage subsystem. | Florian Apolloner | 2022-01-04 | 1 | -1/+8 |
| | | | | Thanks to Dennis Brinkrolf for the report. | ||||
* | Updated various links to HTTPS and new locations. | Mariusz Felisiak | 2021-12-02 | 1 | -1/+1 |
| | | | | Co-Authored-By: Nick Pope <nick@nickpope.me.uk> | ||||
* | Fixed #33079 -- Fixed get_image_dimensions() on nonexistent images. | Stefanos I. Tsaklidis | 2021-09-02 | 1 | -1/+4 |
| | | | | Thanks Nick Pope for the review. | ||||
* | Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵ | David Smith | 2021-07-29 | 1 | -1/+1 |
| | | | | appropriate. | ||||
* | Fixed #32821 -- Updated os.scandir() uses to use a context manager. | Chris Jerdonek | 2021-06-07 | 1 | -5/+6 |
| | |||||
* | Fixed #28154 -- Prevented infinite loop in FileSystemStorage.save() when a ↵ | Jacob Walls | 2021-06-02 | 1 | -1/+1 |
| | | | | broken symlink with the same name exists. | ||||
* | Fixed #32718 -- Relaxed file name validation in FileField. | Mariusz Felisiak | 2021-05-13 | 1 | -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 Pope | 2021-05-12 | 1 | -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 Apolloner | 2021-05-04 | 3 | -0/+26 |
| | |||||
* | Refs #32508 -- Raised Type/ValueError instead of using "assert" in django.core. | Daniyal | 2021-03-19 | 1 | -1/+2 |
| | |||||
* | Fixed #30422 -- Made TemporaryFileUploadHandler handle interrupted uploads. | aryan | 2020-09-30 | 1 | -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 Ramezani | 2020-09-15 | 1 | -4/+7 |
| | | | | django.core.files.locks.lock()/unlock() on POSIX systems. | ||||
* | Fixed CVE-2020-24583, #31921 -- Fixed permissions on intermediate-level ↵ | Mariusz Felisiak | 2020-09-01 | 1 | -3/+3 |
| | | | | | | static and storage directories on Python 3.7+. Thanks WhiteSage for the report. | ||||
* | Bumped minimum isort version to 5.1.0. | David Smith | 2020-07-30 | 1 | -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 Ramezani | 2019-10-31 | 1 | -1/+1 |
| | |||||
* | Fixed #30736 -- Added Storage.get_alternative_name() to allow customization. | yukihira1992 | 2019-08-30 | 1 | -5/+12 |
| | |||||
* | Corrected several typos in string literals and test names. | Min ho Kim | 2019-08-07 | 1 | -1/+1 |
| | |||||
* | Fixed "byte string" typo in various docs and comments. | Mariusz Felisiak | 2019-03-28 | 1 | -3/+3 |
| | |||||
* | Fixed #30147 -- Simplified directory creation with os.makedirs(..., ↵ | Jon Dufresne | 2019-01-31 | 1 | -18/+12 |
| | | | | exist_ok=True). | ||||
* | Fixed #30137 -- Replaced OSError aliases with the canonical OSError. | Jon Dufresne | 2019-01-28 | 3 | -4/+4 |
| | | | | Used more specific errors (e.g. FileExistsError) as appropriate. | ||||
* | Fixed #29890 -- Fixed FileSystemStorage crash if concurrent saves try to ↵ | Tim Graham | 2018-10-31 | 1 | -2/+2 |
| | | | | | | create the same directory. Regression in 632c4ffd9cb1da273303bcd8005fff216506c795. | ||||
* | Fixed #29857 -- Added get_storage_class to django.core.files.storage.__all__. | Tim Graham | 2018-10-17 | 1 | -1/+4 |
| | |||||
* | Capitalized "Python" in docs and comments. | Jon Dufresne | 2018-10-09 | 1 | -1/+1 |
| | |||||
* | Refs #29784 -- Switched to https:// links where available. | Jon Dufresne | 2018-09-26 | 2 | -3/+3 |
| | |||||
* | Fixed #29705 -- Fixed ImageField RuntimeError crash for WebP files. | winkidney | 2018-08-23 | 1 | -0/+4 |
| | |||||
* | Fixed #29689 -- Improved performance of FileSystemStorage.listdir() and ↵ | Federico Bond | 2018-08-20 | 1 | -4/+4 |
| | | | | FilePathField with os.scandir(). | ||||
* | Fixed typo in ContentFile docstring. | Thomas Grainger | 2018-07-27 | 1 | -1/+1 |
| | |||||
* | Fixed #28144 -- Added FileSystemStorage.OS_OPEN_FLAGS to allow customization. | Jon Prindiville | 2018-06-29 | 1 | -5/+4 |
| | |||||
* | Fixed #29514 -- Reverted "Used datetime.timezone.utc instead of pytz.utc for ↵ | Tim Graham | 2018-06-28 | 1 | -1/+5 |
| | | | | | | | better performance." This reverts commit 27ca5ce19f5f184018a61611c1bc319113b1d107 due to a regression. | ||||
* | Used datetime.timezone.utc instead of pytz.utc for better performance. | Sergey Fedoseev | 2018-03-20 | 1 | -5/+1 |
| | |||||
* | Removed redundant UploadedFile.DEFAULT_CHUNK_SIZE. | Sergey Fedoseev | 2018-03-12 | 2 | -2/+1 |
| | | | The same value is inherited from File. | ||||
* | Used cached_property for File.size. | Sergey Fedoseev | 2018-03-10 | 1 | -13/+4 |
| | |||||
* | Fixed #29188 -- Fixed ContentFile.size after a write(). | Alex Stovbur | 2018-03-08 | 1 | -0/+4 |
| | |||||
* | Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵ | Дилян Палаузов | 2018-01-12 | 1 | -4/+1 |
| | | | | continue statements. | ||||
* | Fixed #28982 -- Simplified code with and/or. | Дилян Палаузов | 2018-01-03 | 1 | -6/+2 |
| | |||||
* | Fixed #28776 -- Fixed a/an/and typos in docs and comments. | Дилян Палаузов | 2017-11-06 | 1 | -1/+1 |
| | |||||
* | Removed unnecessary parens in various code. | Mariusz Felisiak | 2017-09-13 | 2 | -3/+3 |
| | |||||
* | Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()." | Tim Graham | 2017-09-07 | 2 | -12/+16 |
| | | | | This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better. |