Forum

Missing incrrement ...
 
Notifications
Clear all

Missing incrrement in saveAttachment

2 Posts
2 Users
0 Reactions
2,141 Views
(@antonio-grr)
Posts: 84
Active Member
Topic starter
 
[#4243]

Hi.
In saveAttachment I see

$cnt = 0;
while(isset($_FILES['uploadedfile'.$cnt])){
$uploadedFileArray[]=$_FILES['uploadedfile'.$cnt];
}
I believe you want
$cnt = 0;
while(isset($_FILES['uploadedfile'.$cnt])){
$uploadedFileArray[]=$_FILES['uploadedfile'.$cnt++];
}
or you will enter in endless loop
Best regards


 
Posted : 30 Mar 2017 10H04
(@babynus)
Posts: 14952
Member Admin
 

You're right,
$cnt++;
is missing

But I guess it's an old part of code that's not used any more with HTML5...
(or we would have many errors reported)


 
Posted : 30 Mar 2017 15H43
Share:

Scroll to Top