#28540: When you save three or more ImageField in admin file perm = 0o600
-------------------------------------+-------------------------------------
     Reporter:  Yaroslav Demidenko   |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  File                 |                  Version:  1.11
  uploads/storage                    |
     Severity:  Normal               |               Resolution:  needsinfo
     Keywords:  ImageField, save,    |             Triage Stage:
  permissions                        |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Xavier Ordoquy):

 Been hitting the same issue although it's somewhat inconsistent. Some
 context:
 - Only have one FileField on the model.
 - So far, it's been happening and reproduced on production with only one
 file (24 uploaded files)

 We'll set `FILE_UPLOAD_PERMISSIONS` and see if that fixes the issue.

 Meanwhile, here's the raw unedited model. I don't think it has anything
 fancy and no signal:

 {{{
 @python_2_unicode_compatible
 class Livret(models.Model):
     bDisplay = models.BooleanField("Utilisé ce semestre", default=True)
     nom = models.CharField(_("Nom"), max_length=255, blank=False,
 null=False)
     file = models.FileField(_("Fichier"), upload_to="PDF")
     infos = models.TextField(blank=True, null=True)
     tags = TaggableManager(blank=True)
     events = models.ManyToManyField(Event, related_name='livrets',
 verbose_name=("Events"), blank=True)

     def __str__(self):
         return self.nom
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28540#comment:3>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.3916e72f4645a63ecf765175d29b02d8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to