Getting the basic wiring of the importer over into Livewire

WIP: Wiring up more and more of the actions on the importer

Files now upload okay, a little glitchy on the display-side though

add to readmes so i dont forget
This commit is contained in:
Brady Wetherington
2022-01-13 01:19:13 -08:00
parent 23ca124e94
commit 0a085af0a0
13 changed files with 641 additions and 638 deletions
+2 -1
View File
@@ -217,7 +217,7 @@ class Setting extends Model
*
* @author Mogilev Arseny
*/
public static function fileSizeConvert($bytes): string
public static function fileSizeConvert(int $bytes): string
{
$result = 0;
$bytes = floatval($bytes);
@@ -244,6 +244,7 @@ class Setting extends Model
],
];
$result = $bytes; // handles the zero case
foreach ($arBytes as $arItem) {
if ($bytes >= $arItem['VALUE']) {
$result = $bytes / $arItem['VALUE'];