|
|
@@ -92,6 +92,7 @@ class Stroage extends Model
|
|
|
*/
|
|
|
public static function uploadFile($file, $scene = 'default')
|
|
|
{
|
|
|
+ set_time_limit(0);
|
|
|
$data = [];
|
|
|
$path = "upload/files/{$scene}";
|
|
|
if (!is_dir($path)) {
|
|
|
@@ -306,6 +307,10 @@ class Stroage extends Model
|
|
|
$command = "libreoffice6.3 --invisible --convert-to doc --outdir \"{$path}\" \"{$pathFile}\"";
|
|
|
exec($command);
|
|
|
break;
|
|
|
+ case 'xlsx':
|
|
|
+ $command = "libreoffice6.3 --invisible --convert-to xlsx --outdir \"{$path}\" \"{$pathFile}\"";
|
|
|
+ exec($command);
|
|
|
+ break;
|
|
|
}
|
|
|
|
|
|
return $filename;
|