Added Download file, play for homebrews and ZIP explorer.

This commit is contained in:
2026-06-16 18:35:01 +02:00
parent 7e1e26f20b
commit 279160c1cb
12 changed files with 215 additions and 24 deletions

View File

@@ -77,9 +77,11 @@ class FileServerController extends Controller {
abort(404);
}
if( !EntryHelpers::fileAlreadyDownloaded($file) ) {
EntryHelpers::markFileAsDownloaded($file);
$file->increaseDownloadCount();
if($request->input('count_download', true)) {
if (!EntryHelpers::fileAlreadyDownloaded($file)) {
EntryHelpers::markFileAsDownloaded($file);
$file->increaseDownloadCount();
}
}
return redirect( $this->fs->getDownloadFileUrl( $file) );