#28132: Error on file upload
-------------------------------+--------------------------------------
     Reporter:  Michal Čihař   |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Uncategorized  |                  Version:  1.10
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Description changed by Michal Čihař:

Old description:

> Unfortunately I don't have a reproducer and I'm still on 1.10 on
> production, but I still think it's worth reporting.
>
> On file upload following error is raised:
>
> {{{
> Traceback:
>
> File "/usr/lib/python2.7/dist-packages/django/core/handlers/exception.py"
> in inner
>   42.             response = get_response(request)
>
> File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in
> _legacy_get_response
>   249.             response = self._get_response(request)
>
> File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in
> _get_response
>   178.             response = middleware_method(request, callback,
> callback_args, callback_kwargs)
>
> File "/usr/lib/python2.7/dist-packages/django/middleware/csrf.py" in
> process_view
>   260.                     request_csrf_token =
> request.POST.get('csrfmiddlewaretoken', '')
>
> File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py" in
> _get_post
>   128.             self._load_post_and_files()
>
> File "/usr/lib/python2.7/dist-packages/django/http/request.py" in
> _load_post_and_files
>   299.                 self._post, self._files =
> self.parse_file_upload(self.META, data)
>
> File "/usr/lib/python2.7/dist-packages/django/http/request.py" in
> parse_file_upload
>   258.         return parser.parse()
>
> File "/usr/lib/python2.7/dist-packages/django/http/multipartparser.py" in
> parse
>   163.                     self.handle_file_complete(old_field_name,
> counters)
>
> File "/usr/lib/python2.7/dist-packages/django/http/multipartparser.py" in
> handle_file_complete
>   301.             file_obj = handler.file_complete(counters[i])
>
> File "/usr/lib/python2.7/dist-
> packages/django/core/files/uploadhandler.py" in file_complete
>   153.         self.file.seek(0)
> }}}

New description:

 Unfortunately I don't have a reproducer and I'm still on 1.10 on
 production, but I still think it's worth reporting.

 On file upload following error is raised:

 {{{
 Traceback:

 File "/usr/lib/python2.7/dist-packages/django/core/handlers/exception.py"
 in inner
   42.             response = get_response(request)

 File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in
 _legacy_get_response
   249.             response = self._get_response(request)

 File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in
 _get_response
   178.             response = middleware_method(request, callback,
 callback_args, callback_kwargs)

 File "/usr/lib/python2.7/dist-packages/django/middleware/csrf.py" in
 process_view
   260.                     request_csrf_token =
 request.POST.get('csrfmiddlewaretoken', '')

 File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py" in
 _get_post
   128.             self._load_post_and_files()

 File "/usr/lib/python2.7/dist-packages/django/http/request.py" in
 _load_post_and_files
   299.                 self._post, self._files =
 self.parse_file_upload(self.META, data)

 File "/usr/lib/python2.7/dist-packages/django/http/request.py" in
 parse_file_upload
   258.         return parser.parse()

 File "/usr/lib/python2.7/dist-packages/django/http/multipartparser.py" in
 parse
   163.                     self.handle_file_complete(old_field_name,
 counters)

 File "/usr/lib/python2.7/dist-packages/django/http/multipartparser.py" in
 handle_file_complete
   301.             file_obj = handler.file_complete(counters[i])

 File "/usr/lib/python2.7/dist-packages/django/core/files/uploadhandler.py"
 in file_complete
   153.         self.file.seek(0)

 Exception Type: AttributeError at /dictionaries/kallithea/be/upload/
 Exception Value: 'TemporaryFileUploadHandler' object has no attribute
 'file'
 }}}

--

--
Ticket URL: <https://code.djangoproject.com/ticket/28132#comment:2>
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/063.5fe8d094c833ecad933d8472143d6340%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to