Transferring to CDN, not Uploading
This commit is contained in:
@@ -84,7 +84,7 @@ class StoreUploadedFileJob implements ShouldQueue
|
|||||||
$fileName = $this->media->name;
|
$fileName = $this->media->name;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$this->media->status = "Uploading to CDN";
|
$this->media->status = "Transferring to CDN";
|
||||||
$this->media->save();
|
$this->media->save();
|
||||||
|
|
||||||
// convert HEIC file
|
// convert HEIC file
|
||||||
|
|||||||
@@ -709,7 +709,7 @@ class Media extends Model
|
|||||||
/** @var Illuminate\Filesystem\FilesystemAdapter */
|
/** @var Illuminate\Filesystem\FilesystemAdapter */
|
||||||
$fileSystem = Storage::disk($this->storage);
|
$fileSystem = Storage::disk($this->storage);
|
||||||
// if ($silent === false) {
|
// if ($silent === false) {
|
||||||
// $this->status('Uploading to CDN');
|
// $this->status('Transferring to CDN');
|
||||||
// }
|
// }
|
||||||
$fileSystem->putFileAs('/', $this->stagingFilePath, $this->name);
|
$fileSystem->putFileAs('/', $this->stagingFilePath, $this->name);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user