Attack
Forum Üyesi
- Katılım
- 4 Şub 2023
- Mesajlar
- 2,618
- Puanları
- 0
Hey
I was wondering and struggling all day on how to make XenForo return a file to the user after a request.
I managed to get it working on direct url access. /xxxx/download
PHP:
public function actionDownload(ParameterBag $params) { $visitor = \XF::visitor(); // Check if the user is logged in if (!$visitor->user_id) { return $this->error('You must be logged in to download scripts.'); } $client = \XF::app()->http()->client()...
I was wondering and struggling all day on how to make XenForo return a file to the user after a request.
I managed to get it working on direct url access. /xxxx/download
PHP:
public function actionDownload(ParameterBag $params) { $visitor = \XF::visitor(); // Check if the user is logged in if (!$visitor->user_id) { return $this->error('You must be logged in to download scripts.'); } $client = \XF::app()->http()->client()...
Misafirler için gizlenen link, görmek için
Giriş yap veya üye ol.