Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed amine authored and mohamed amine committed Oct 7, 2017
1 parent ccde2f9 commit 6cc5563
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,31 @@ Multi File Upload

// optional (before excuting $file->upload() both multi or single file upload)

// compress images (images only)
$quality = 75;
$file->compress($quality);

// validation max Size, Allowed Extensions and if user selected a file
$file->Size(9999999)->Extension('jpg,png,jpeg')->Exist();

// Get Name of single / multi files
$file->getName(); $file->getNames();
$file->getName(); // for single file return string
$file->getNames(); // for multi files return array

// Get Extension of single / multi files
$file->getExtension(); $file->getExtensions();
$file->getExtension(); // for single file return string
$file->getExtensions(); // for multi files return array

// Set Name for single / Multi files
$file->setName('myname'); $file->setNames(['first', 'second', third]);
$file->setName('myname'); // for single file
$file->setNames(['first', 'second', third]); // for multi files


// options available only for single file upload
// New Extension
$file->setExtension('pdf');




```
Expand Down

0 comments on commit 6cc5563

Please sign in to comment.