Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single files are only accessible when they have a numeric index #20

Closed
hollodotme opened this issue Nov 4, 2016 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@hollodotme
Copy link
Member

Currently the following method signature only allows access to numeric indexed files.

public function getOneFile( string $fieldKey, int $fileIndex = 0 );

So if a file is submitted with a string index like this:

<input type="file" name="files[file1]">

it it not accessible by the method above.

Change the method signature to:

public function getOneFile( string $fieldKey, $fileIndex = 0 );

So the file index can either be an integer or a string.

@hollodotme hollodotme added the bug label Nov 4, 2016
@hollodotme hollodotme added this to the v2.0.3 milestone Nov 4, 2016
@hollodotme hollodotme self-assigned this Nov 4, 2016
@hollodotme
Copy link
Member Author

Note: We cannot change the parameters type to string, because this would be a BC break.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant