Skip to content

Commit 5e4ec0f

Browse files
author
LYU XIAO
committed
modify the fclose
1 parent b467a27 commit 5e4ec0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ $upyun->writeFile('/path/to/server/file.ext', 'your file content', true);
7979
```php
8080
$file_handler = fopen('demo.png', 'r');
8181
$upyun->writeFile('/path/to/server/demo.png', $file_handler, true);
82-
fclose($fh);
82+
fclose($file_handler);
8383
```
8484
`writeFile()`第三个参数为可选,`true`表示自动创建相应目录,默认值为`false`
8585
文件空间上传成功后返回`true`

0 commit comments

Comments
 (0)