Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is Laravel - File Uploading ?

Answer Posted / rachana devi

Uploading Files in Laravel is very easy. All we need to do is to create a view file where a user can select a file to be uploaded and a controller where uploaded files will be processed.

In a view file, we need to generate a file input by adding the following line of code.

Syntax : Form::file('file_name');

In Form::open(), we need to add ‘files’=>’true’ as shown below. This facilitates the form to be uploaded in multiple parts.

Syntax : Form::open(array('url' => '/uploadfile','files'=>'true'));

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is composer in laravel php?

806


Tell me what are system requirement for laravel 5.0?

753


How to create migrations in laravel? Explain step by steps.

708


What is fillable in laravel model?

685


How to make a custom validation rule in laravel?

695


What is Route Parameters ?

1351


How can you display html with blade in laravel?

689


What is auth? How is it used?

688


How to get/set configuration values in laravel?

761


What is service providers in laravel?

747


What is a recursive helper function?

812


What are laravel’s contracts?

825


How to Declaration of namespace ?

1350


What is meant by Laravel - Encryption ?

1484


What is facade in laravel?

733