Browse Source

update README

xu ding 6 years ago
parent
commit
9777e22496
1 changed files with 3 additions and 1 deletions
  1. 3 1
      readme.md

+ 3 - 1
readme.md

@@ -1,4 +1,4 @@
-# PHP backend for resumable file upload
+# PHP backend for chucked file upload
 
 
 
 
 ## Installation
 ## Installation
@@ -35,10 +35,12 @@ $resumable->process();
 ```
 ```
 // custom filename (extension from original file will be magically removed and re-appended)
 // custom filename (extension from original file will be magically removed and re-appended)
 $originalName = $resumable->getOriginalFilename(Resumable::WITHOUT_EXTENSION); // will gove you "original Name" instead of "original Name.png"
 $originalName = $resumable->getOriginalFilename(Resumable::WITHOUT_EXTENSION); // will gove you "original Name" instead of "original Name.png"
+
 // do some slugification or whatever you need...
 // do some slugification or whatever you need...
 $slugifiedname = my_slugify($originalName); // this is up to you, it as ported out of the library.
 $slugifiedname = my_slugify($originalName); // this is up to you, it as ported out of the library.
 $resumable->setFilename($slugifiedname);
 $resumable->setFilename($slugifiedname);
 
 
+// process upload as normal
 $resumable->process();
 $resumable->process();
 
 
 // you can also get file information after the upload is complete
 // you can also get file information after the upload is complete