#32718: Saving a FileField raises SuspiciousFileOperation in some scenarios. -------------------------------------+------------------------------------- Reporter: Jakub Kleň | Owner: Mariusz | Felisiak Type: Bug | Status: assigned Component: Database layer | Version: 2.2 (models, ORM) | Severity: Release blocker | Resolution: Keywords: 3.2.1 file model | Triage Stage: Accepted filefield fieldfile | Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak): I added [https://github.com/django/django/pull/14372 PR] with the proposed solution. Please give it a spin. > 1. If `filename` passed to the `FileField.generate_filename()` is an absolute path, it will be converted to the `os.path.basename(filename)`. IMO this is not necessary. -- Ticket URL: <https://code.djangoproject.com/ticket/32718#comment:33> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.87c3323717e0eaed503e944d9cbca3ab%40djangoproject.com.