Add a check that if `settings.FILE_UPLOAD_TEMP_DIR` is set, then the
directory actually exists. This is because if it doesn't exist it can lead
to an OSError when python attempts to create a `NamedTemporaryFile`.
My only question is how this check should be categorised. It doesn't fit
nicely into any of the existing tags. Would this merit a new tag? files?
--
Ticket URL: <https://code.djangoproject.com/ticket/32360>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* version: 3.1 => 4.0
* component: Uncategorized => Core (Other)
* stage: Unreviewed => Accepted
Comment:
> My only question is how this check should be categorised. It doesn't fit
nicely into any of the existing tags. Would this merit a new tag? files?
`files` sounds good.
--
Ticket URL: <https://code.djangoproject.com/ticket/32360#comment:1>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32360#comment:2>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32360#comment:3>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/32360#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"b1821fbad5518c8ae56b7b5c2b1ea2afbbd25c7a" b1821fb]:
{{{
#!CommitTicketReference repository=""
revision="b1821fbad5518c8ae56b7b5c2b1ea2afbbd25c7a"
Fixed #32360 -- Added system check for FILE_UPLOAD_TEMP_DIR setting.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32360#comment:5>