Skip to content

Commit

Permalink
Update FilesController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wimurk committed Jul 2, 2021
1 parent 47bae1c commit cdbec42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controllers/FilesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public static function createConfigByFile(string $path, array $config = []): str
], $config);

File::move($path, Str::before($path, $name)."$id.$extension");
File::put(Str::before(str_replace($name, $id, $path), '.').".fmc", json_encode($data));
File::put(Str::before(str_replace($name, $id, $path), "$id.")."$id.fmc", json_encode($data));

FileObserver::create((object) $data);
return $data['basepath'];
Expand Down

0 comments on commit cdbec42

Please sign in to comment.