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/Models/LocalFileVolume.php
+12-10Lines changed: 12 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -87,19 +87,21 @@ public function saveStorageOnServer()
87
87
$fileVolume->save();
88
88
thrownew \Exception('The following file is a directory on the server, but you are trying to mark it as a file. <br><br>Please delete the directory on the server or mark it as directory.');
89
89
}
90
-
if (! $fileVolume->is_directory && $isDir == 'NOK') {
90
+
if ($isDir == 'NOK' && ! $fileVolume->is_directory) {
91
+
$chmod = data_get($fileVolume, 'chmod');
92
+
$chown = data_get($fileVolume, 'chown');
91
93
if ($content) {
92
94
$content = base64_encode($content);
93
-
$chmod = $fileVolume->chmod;
94
-
$chown = $fileVolume->chown;
95
95
$commands->push("echo '$content' | base64 -d | tee $path > /dev/null");
0 commit comments