Skip to content

Commit

Permalink
Use site/cache/.uploads as tmp directory
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed May 5, 2024
1 parent 0d4da97 commit 137bc2c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/Api/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,6 @@ public static function chunkSize(): int
*/
public static function tmp(): string
{
return App::instance()->root('tmp') . '/uploads';
return App::instance()->root('cache') . '/.uploads';
}
}
1 change: 0 additions & 1 deletion src/Cms/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ public function roots(): array
'sessions' => fn (array $roots) => $roots['site'] . '/sessions',
'snippets' => fn (array $roots) => $roots['site'] . '/snippets',
'templates' => fn (array $roots) => $roots['site'] . '/templates',
'tmp' => fn (array $roots) => $roots['site'] . '/tmp',
'roles' => fn (array $roots) => $roots['blueprints'] . '/users',
];
}
Expand Down

0 comments on commit 137bc2c

Please sign in to comment.