Download the PHP package oval/laravel-upload-helper without Composer
On this page you can find all versions of the php package oval/laravel-upload-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download oval/laravel-upload-helper
More information about oval/laravel-upload-helper
Files in oval/laravel-upload-helper
Download oval/laravel-upload-helper
More information about oval/laravel-upload-helper
Files in oval/laravel-upload-helper
Vendor oval
Package laravel-upload-helper
Short Description Upload helper library for Laravel
License MIT
Homepage https://github.com/jamestrusleroval/PHP_Laravel_Upload_Helper
Package laravel-upload-helper
Short Description Upload helper library for Laravel
License MIT
Homepage https://github.com/jamestrusleroval/PHP_Laravel_Upload_Helper
Please rate this library. Is it a good library?
Informations about the package laravel-upload-helper
PHP_Laravel_Upload_Helper
Include our library using the composer name: "oval/laravel-upload-helper": "v1.0.3"
Controller:
Here is an example of a controller method
public function PostTestUpload()
{
$file = Input::file( "File" );
// Check if any file was uploaded
if( Input::hasFile( "File" ) )
{
$validation = Validator::make(
array( "File" => $file ), // Values
array( "File" => "mimes:png" ) // Rules
);
if( !$validation->fails() )
{
UploadHelper::UploadFile( $file, "location/of/file", uniqid() . "_" . $file->getClientOriginalName() );
}
else
{
print_r( $validation->messages() );
}
}
else
{
// Redirect with some error saying upload a file!
echo "Ah, no file was uploaded...<br />";
}
}
View:
Here is an example of the view
<form enctype='multipart/form-data' method="post" action='<?=action('TestController@PostTestUpload')?>'>
Upload <input type='file' name="File" />
<button>UPLOAD</button>
</form>
All versions of laravel-upload-helper with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package oval/laravel-upload-helper contains the following files
Loading the files please wait ....