Split upload by file
This commit is contained in:
19
inc/catc.php
19
inc/catc.php
@@ -213,14 +213,19 @@ class CATC extends Main
|
|||||||
$sDesc = $asData['desc'];
|
$sDesc = $asData['desc'];
|
||||||
|
|
||||||
//Send missing files
|
//Send missing files
|
||||||
if($bSuccess && isset($asData['data']['files']) && !empty($asData['data']['files'])) {
|
if($bSuccess && isset($asData['data']['files'])) {
|
||||||
$asResult = $this->sendFilesToServer('file_update', $asData['data']['files']);
|
foreach($asData['data']['files'] as $asFile) {
|
||||||
if($asResult['result']) {
|
$asResult = $this->sendFilesToServer('file_update', $asFile);
|
||||||
$asData = $asResult['content'];
|
$bSuccess = false;
|
||||||
$bSuccess = ($asData['result'] == self::SUCCESS);
|
if($asResult['result']) {
|
||||||
$sDesc = $asData['desc'];
|
$asData = $asResult['content'];
|
||||||
|
$bSuccess = ($asData['result'] == self::SUCCESS);
|
||||||
|
$sDesc = $asData['desc'];
|
||||||
|
}
|
||||||
|
else $sDesc = $asResult['desc'];
|
||||||
|
|
||||||
|
if(!$bSuccess) break;
|
||||||
}
|
}
|
||||||
else $sDesc = $asResult['desc'];
|
|
||||||
}
|
}
|
||||||
else $this->addNotice('No missing files identified');
|
else $this->addNotice('No missing files identified');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user