Bug #50181

[DOC] wrong number regarding multiple upload fields

Added by Cedric Ziel about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
- Documentation -
Target version:
-
Start date:
2013-07-19
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:
no-brainer

Description

Though this is small, the docs state that

<f:form.upload property="attachments.0.originalResource" />
<f:form.upload property="attachments.1.originalResource" />

translates to
<input type="file" name="formObject[attachments][0][originalResource]">
<input type="file" name="formObject[attachments][0][originalResource]">

Obviously, this is not the case. Second index is 1.

Also available in: Atom PDF