bug fix
This commit is contained in:
@@ -152,7 +152,7 @@ class MediaController extends ApiController
|
|||||||
$tempInfo = tempFileInfo($temporaryFilePath);
|
$tempInfo = tempFileInfo($temporaryFilePath);
|
||||||
|
|
||||||
for($i = 1; $i <= intval($request->get('chunk_count', '1')); $i++) {
|
for($i = 1; $i <= intval($request->get('chunk_count', '1')); $i++) {
|
||||||
if(tempFileExists($tempInfo['dir'], $tempInfo['filename'], $tempInfo['extension'], $i) === false) {
|
if(tempFileExists($tempInfo['dirname'], $tempInfo['filename'], $tempInfo['extension'], $i) === false) {
|
||||||
$finalize = false;
|
$finalize = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -162,7 +162,7 @@ class MediaController extends ApiController
|
|||||||
$newTempFile = generateTempFilePath($tempInfo['extension']);
|
$newTempFile = generateTempFilePath($tempInfo['extension']);
|
||||||
|
|
||||||
for($i = 1; $i <= intval($request->get('chunk_count', '1')); $i++) {
|
for($i = 1; $i <= intval($request->get('chunk_count', '1')); $i++) {
|
||||||
$tempFileName = constructTempFileName($tempInfo['dir'], $tempInfo['filename'], $tempInfo['extension'], $i);
|
$tempFileName = constructTempFileName($tempInfo['dirname'], $tempInfo['filename'], $tempInfo['extension'], $i);
|
||||||
if(file_exists($tempFileName) === false) {
|
if(file_exists($tempFileName) === false) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'message' => 'A server error occurred. Please try again later'
|
'message' => 'A server error occurred. Please try again later'
|
||||||
|
|||||||
Reference in New Issue
Block a user