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
Copy file name to clipboardExpand all lines: app/Http/Controllers/proc/convertController.php
+21-15
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,7 @@ public function convert(Request $request) {
134
134
env('ASPOSE_CLOUD_CLIENT_ID'),
135
135
env('ASPOSE_CLOUD_TOKEN'),
136
136
"xlsx",
137
-
$file,
137
+
$newFilePath,
138
138
$newFileNameWithoutExtension.".xlsx"
139
139
],
140
140
null,
@@ -171,10 +171,10 @@ public function convert(Request $request) {
171
171
DB::table('appLogs')
172
172
->where('processId', '=', $Nuuid)
173
173
->update([
174
-
'errReason' => 'Symfony runtime running out of time !',
174
+
'errReason' => 'Symfony runtime process out of time exception !',
175
175
'errApiReason' => $message->getMessage(),
176
176
]);
177
-
NotificationHelper::Instance()->sendErrNotify($currentFileName, $newFileSize, $Nuuid, 'FAIL', 'Symfony runtime running out of time !', $message->getMessage());
177
+
NotificationHelper::Instance()->sendErrNotify($currentFileName, $newFileSize, $Nuuid, 'FAIL', 'Symfony runtime process out of time exception !', $message->getMessage());
178
178
returnresponse()->json([
179
179
'status' => 400,
180
180
'message' => 'HANA PDF process timeout !',
@@ -252,10 +252,10 @@ public function convert(Request $request) {
252
252
}
253
253
}
254
254
if (!$asposeAPI->isSuccessful()) {
255
-
if (AppHelper::instance()->getFtpResponse(Storage::disk('local')->path('public/'.$pdfDownload_Location.'/'.$newFileNameWithoutExtension.'.xslx'), $newFileNameWithoutExtension.".xlsx") == true) {
255
+
if (AppHelper::instance()->getFtpResponse(Storage::disk('local')->path('public/'.$pdfDownload_Location.'/'.$newFileNameWithoutExtension.'.xlsx'), $newFileNameWithoutExtension.".xlsx") == true) {
@@ -422,13 +428,13 @@ public function convert(Request $request) {
422
428
->where('processId', '=', $Nuuid)
423
429
->update([
424
430
'errReason' => 'Converted file not found on the server !',
425
-
'errApiReason' => $asposeAPI->getOutput()
431
+
'errApiReason' => $asposeAPI->getOutput(),
426
432
]);
427
433
NotificationHelper::Instance()->sendErrNotify($currentFileName, $newFileSize, $Nuuid, 'FAIL', 'Converted file not found on the server !', $asposeAPI->getOutput());
428
434
returnresponse()->json([
429
435
'status' => 400,
430
436
'message' => 'PDF Conversion failed !',
431
-
'error' => $asposeAPI->getMessage(),
437
+
'error' => null,
432
438
'processId' => $Nuuid
433
439
], 400);
434
440
} catch (QueryException$ex) {
@@ -457,7 +463,7 @@ public function convert(Request $request) {
457
463
env('ASPOSE_CLOUD_CLIENT_ID'),
458
464
env('ASPOSE_CLOUD_TOKEN'),
459
465
"pptx",
460
-
$file,
466
+
$newFilePath,
461
467
$newFileNameWithoutExtension.".pptx"
462
468
],
463
469
null,
@@ -479,7 +485,7 @@ public function convert(Request $request) {
@@ -651,11 +657,11 @@ public function convert(Request $request) {
651
657
'errReason' => 'Converted file not found on the server !',
652
658
'errApiReason' => $asposeAPI->getOutput(),
653
659
]);
654
-
NotificationHelper::Instance()->sendErrNotify($currentFileName, $newFileSize, $Nuuid, 'FAIL', 'Converted file not found on the server !', null);
660
+
NotificationHelper::Instance()->sendErrNotify($currentFileName, $newFileSize, $Nuuid, 'FAIL', 'Converted file not found on the server !', $asposeAPI->getOutput());
655
661
returnresponse()->json([
656
662
'status' => 400,
657
663
'message' => 'PDF Conversion failed !',
658
-
'error' => null,
664
+
'error' => $asposeAPI->getOutput(),
659
665
'processId' => $Nuuid
660
666
], 400);
661
667
} catch (QueryException$ex) {
@@ -751,9 +757,9 @@ public function convert(Request $request) {
751
757
->where('processId', '=', $Nuuid)
752
758
->update([
753
759
'errReason' => 'Converted file not found on the server !',
754
-
'errApiReason' => null,
760
+
'errApiReason' => $asposeAPI->getOutput(),
755
761
]);
756
-
NotificationHelper::Instance()->sendErrNotify($currentFileName, $newFileSize, $Nuuid, 'FAIL', 'Converted file not found on the server !', null);
762
+
NotificationHelper::Instance()->sendErrNotify($currentFileName, $newFileSize, $Nuuid, 'FAIL', 'Converted file not found on the server !', $asposeAPI->getOutput());
0 commit comments