File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function upload()
67
67
$ data = fread ($ this ->inputStream , $ blockSize );
68
68
if ($ data === false ) {
69
69
fclose ($ this ->inputStream );
70
- throw new Exception ("file read failed " , 1 );
70
+ throw new \ Exception ("file read failed " , 1 );
71
71
}
72
72
$ crc = \Qiniu \crc32_data ($ data );
73
73
$ response = $ this ->makeBlock ($ data , $ blockSize );
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public function putFile(
81
81
) {
82
82
$ file = fopen ($ filePath , 'rb ' );
83
83
if ($ file === false ) {
84
- throw new Exception ("file can not open " , 1 );
84
+ throw new \ Exception ("file can not open " , 1 );
85
85
}
86
86
$ params = self ::trimParams ($ params );
87
87
$ stat = fstat ($ file );
@@ -90,7 +90,7 @@ public function putFile(
90
90
$ data = fread ($ file , $ size );
91
91
fclose ($ file );
92
92
if ($ data === false ) {
93
- throw new Exception ("file can not read " , 1 );
93
+ throw new \ Exception ("file can not read " , 1 );
94
94
}
95
95
return FormUploader::put (
96
96
$ upToken ,
You can’t perform that action at this time.
0 commit comments