Categories
Laravel

How to Upload, download, remove Files to Amazon S3 Using Laravel

Create a controller called UploadController.php with following code. Create a view file Create a file called upload.blade.php in the resources/views directory and place below inside it. Define Routes Open your routes/web.php directory and add following route definitions to it.

Categories
Express.js

Express js – Zip and download files

Categories
Node JS

Download remote URL files using Node JS, wget

In this post, I would like to show you downloading files using node js and wget. We gonna use URL, child_process and path modules to achieve this. Just go through the comments for a better understanding. You can download files from remote sources in several ways, but I prefer using wget utility because it’s efficient […]

Categories
Laravel

How to force download files in Laravel?

Giving download option to the user is a pretty common requirement in today’s web apps for the variety of reasons. For example, if your application is related to online shopping, you might need an invoice download feature, in this scenario, you might need to force the user’s browser to download the file at the given […]

Categories
Express.js

Download a file from NodeJS Server using ExpressJS

I this tutorial you will learn how to download files from your NodeJS server from your express js application. As your application is built using the ExpressJS framework you don’t have to play around with HTTP headers to allow downloads form your Node server. Express providing Helper function called res.download(path [, filename] [, fn]); It […]