Returning a File to the User and Implementing AJAX Form Action

Status
This content is read-only, or is not open for further replies.

DKGE

Guest
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:

Code:
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()...

Read more

Continue reading...

free plugins
minecraft paid for free
free minecraft paid plugins
free minecraft plugins
spigotmc
SpigotMC
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
xenforo leaked
xenforo for free
xenforo addons
 
Liked by:
Status
This content is read-only, or is not open for further replies.

Latest threads

Forum statistics

Threads
67,029
Messages
99,597
Members
64,248
Latest member
rzsm
Top Bottom