diff --git a/docs/docs/FILES.md b/docs/docs/FILES.md
index bb128b0f..84d9942a 100644
--- a/docs/docs/FILES.md
+++ b/docs/docs/FILES.md
@@ -393,7 +393,7 @@ This downloads the given file to the browser, sending also information about the
`$offset` is an optional parameter that specifies the byte from which to start downloading
-`$limit` is an optional parameter that specifies the byte where to stop downloading (non-inclusive)
+`$endoffset` is an optional parameter that specifies the byte where to stop downloading (non-inclusive)
## Getting progress
@@ -535,4 +535,4 @@ if (!isset($result['file_name'])) {
* `$result['file_size']` - File size
* `$result['file_name']` - File name
-Next section
\ No newline at end of file
+Next section