Преглед на файлове

Readme examples update.

Romain Bruckert преди 9 години
родител
ревизия
12873213df
променени са 1 файла, в които са добавени 8 реда и са изтрити 7 реда
  1. 8 7
      readme.md

+ 8 - 7
readme.md

@@ -29,17 +29,18 @@ $resumable->process();
 
 ```
 
-## Options ##
-### Setting custom filename ###
+## More ##
+### Setting custom filename(s) ###
 
 ```
 // custom filename (extension from original file will be kept)
-// @todo Add resumable->getExtension() method
-$resumable->setFilename('myfile');
+$resumable->setFilename('someCoolFilename');
 
-// automatically slugified filename
-// @todo Not yet working, better use as 3d party library https://github.com/cocur/slugify
-$resumable->setFilename(RESUMABLE::SLUGIFY);
+// you can also get file information after the upload is complete
+if (true === $resumable->isUploadComplete()) { // true when the final file has been uploaded and chunks reunited.
+    $extension = $resumable->getExtension();
+    $filename = $resumable->getFilename();
+}
 ```
 
 ## Testing