django-private-storage icon indicating copy to clipboard operation
django-private-storage copied to clipboard

SuspiciousFileOperation

Open Pablo849 opened this issue 3 years ago • 0 comments

class DocumentoGenerico(RegistroMixin):
    def dame_path(self):
        path = ['/']
        try:
            path.append('{}'.format(self.content_type.app_label))
            path.append('{}'.format(self.content_type.model))
            path.append('registro-{}'.format(self.object_id))
        except AttributeError:
            path.append('genericos')
        return path
    documento = PrivateFileField(_('Documento'), upload_subfolder=dame_path, null=True, blank=True)

It returns SuspiciousFileOperation in Django 2.2.20 and upper. Bug or configuration error? Thx.

Pablo849 avatar Jan 07 '22 13:01 Pablo849