#31075: CSRF token missing or incorrect when File upload path not exist
------------------------------------------------+------------------------
Reporter: hyperleex | Owner: nobody
Type: Bug | Status: new
Component: File uploads/storage | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
For example model
{{{
class TargetContent(models.Model):
target = models.ForeignKey(
Target, related_name='contents', verbose_name=_('Target'),
on_delete=models.CASCADE
)
image = models.ImageField(upload_to ='target_content/')
}}}
And if **target_content** directory doesn’t exist and I am trying to load
image from admin page I receive 403 Forbidden with error "CSRF token
missing or incorrect"
--
Ticket URL: <https://code.djangoproject.com/ticket/31075>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.724e9d2da46940bf0fe09ba546e80deb%40djangoproject.com.