#28402: Provide 'temporary_file_path' for InMemoryUploadedFile
-------------------------------------+-------------------------------------
     Reporter:  Thomas Güttler       |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  File                 |                  Version:  1.11
  uploads/storage                    |
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 Depending on your application's requirements (if every uploaded file needs
 to be written to disk), perhaps you'd want to define `FILE_UPLOAD_HANDLERS
 = ['django.core.files.uploadhandler.TemporaryFileUploadHandler']` which
 removes `MemoryFileUploadHandler` from the default list. Alternatively,
 you can [https://docs.djangoproject.com/en/1.11/topics/http/file-
 uploads/#id1 modify the upload handlers on the fly].

 You didn't describe your use case, but I think these solutions suffice for
 most use cases. An API that effectively transforms an in-memory uploaded
 file into a temporary file seems more complicated.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28402#comment:4>
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/065.f425546a2279c8fa9810e6315bfb0589%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to