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()
6767 $ data = fread ($ this ->inputStream , $ blockSize );
6868 if ($ data === false ) {
6969 fclose ($ this ->inputStream );
70- throw new Exception ("file read failed " , 1 );
70+ throw new \ Exception ("file read failed " , 1 );
7171 }
7272 $ crc = \Qiniu \crc32_data ($ data );
7373 $ response = $ this ->makeBlock ($ data , $ blockSize );
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public function putFile(
8181 ) {
8282 $ file = fopen ($ filePath , 'rb ' );
8383 if ($ file === false ) {
84- throw new Exception ("file can not open " , 1 );
84+ throw new \ Exception ("file can not open " , 1 );
8585 }
8686 $ params = self ::trimParams ($ params );
8787 $ stat = fstat ($ file );
@@ -90,7 +90,7 @@ public function putFile(
9090 $ data = fread ($ file , $ size );
9191 fclose ($ file );
9292 if ($ data === false ) {
93- throw new Exception ("file can not read " , 1 );
93+ throw new \ Exception ("file can not read " , 1 );
9494 }
9595 return FormUploader::put (
9696 $ upToken ,
You can’t perform that action at this time.
0 commit comments