> If the user has permission to list but not read the file
Does this mean you are trying to upload a file that you don't have read access to?
If that is the case, it seems to me that we should for sure show a better error message for this particular case, but I would say that that's expected behavior.
For future reference, the oopses seem always the same:
```
IndexError: list index out of range
Traceback (most recent call last):
Module zope.publisher.publish, line 139, in publish
request.processInputs()
Module zope.publisher.browser, line 346, in processInputs
forms, files = multipart.parse_form_data(
Module multipart, line 501, in parse_form_data
for part in MultipartParser(stream, boundary, content_length, **kwargs):
Module multipart, line 212, in __iter__
for part in self._part_iter:
Module multipart, line 281, in _iterparse
for line, nl in lines:
Module multipart, line 246, in _lineiter
len_first_line = len(lines[0])
IndexError: list index out of range
```
> If the user has permission to list but not read the file
Does this mean you are trying to upload a file that you don't have read access to?
If that is the case, it seems to me that we should for sure show a better error message for this particular case, but I would say that that's expected behavior.
For future reference, the oopses seem always the same:
```
IndexError: list index out of range
Traceback (most recent call last): publish, line 139, in publish processInputs( ) browser, line 346, in processInputs parse_form_ data( (stream, boundary, content_length, **kwargs):
Module zope.publisher.
request.
Module zope.publisher.
forms, files = multipart.
Module multipart, line 501, in parse_form_data
for part in MultipartParser
Module multipart, line 212, in __iter__
for part in self._part_iter:
Module multipart, line 281, in _iterparse
for line, nl in lines:
Module multipart, line 246, in _lineiter
len_first_line = len(lines[0])
IndexError: list index out of range
```