You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
Hello everyone.
Sorry for the title : files data array
Thanks for this great lib that is very helpfull.
I've read about filtering $_FILES to turn uploads optionnals but i've already a problem when I want replace one file by an other in an array.
The new uploaded file have already index #0 and no more information to know exactly what fields was used or not .
To avoid my problem, i've just wrote this to have further control on library returns.
L 222 protected function _set_multi_upload_data($i){
L 439 $this->_set_multi_upload_data($i);
In this way, I can use <input type="file" name="files[str]"> ... and merging arrays become very easy.
Ex :
$array = array ( 'str' => 'value');
$files = $this->upload->get_multi_upload_data();
foreach ( $files as $k => $v)
{
$array[$k] = $v;
}
It is very helpfull in my case, create an object from multi upload form, and I hope this tricks help someone.
If I did some mistake, i'll read your answer carefully.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello everyone.
Sorry for the title : files data array
Thanks for this great lib that is very helpfull.
I've read about filtering $_FILES to turn uploads optionnals but i've already a problem when I want replace one file by an other in an array.
The new uploaded file have already index #0 and no more information to know exactly what fields was used or not .
To avoid my problem, i've just wrote this to have further control on library returns.
L 222 protected function _set_multi_upload_data($i){
L 439 $this->_set_multi_upload_data($i);
In this way, I can use
<input type="file" name="files[str]">
... and merging arrays become very easy.Ex :
$array = array ( 'str' => 'value');
$files = $this->upload->get_multi_upload_data();
foreach ( $files as $k => $v)
{
$array[$k] = $v;
}
It is very helpfull in my case, create an object from multi upload form, and I hope this tricks help someone.
If I did some mistake, i'll read your answer carefully.
The text was updated successfully, but these errors were encountered: