#14063: Validating form file fields is hard -------------------------------------+------------------------------------- Reporter: olau | Owner: nobody Type: New | Status: new feature | Component: File Milestone: | uploads/storage Version: 1.2 | Severity: Normal Resolution: | Keywords: Triage Stage: Accepted | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -------------------------------------+-------------------------------------
Comment (by andrewgodwin): Yeah, that's essentially your workaround. I think what might be the best thing here is to have temporary_file_path, or some nicer equivalent, on all file objects, and have it work on in- memory types too, using tempfile. Alternatively, have some way of marking that a certain FileField never wants in-memory files (i.e. avoiding the global setting), which is nice because it requires less code. -- Ticket URL: <https://code.djangoproject.com/ticket/14063#comment:8> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.