This repository was archived by the owner on Aug 22, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ class Catched
3737 */
3838 public function __construct (array $ result )
3939 {
40- // $this->file = $file;
4140 $ this ->result = $ result ;
4241 }
4342}
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ public function upload(Request $request)
8686
8787 return response ()->json ($ response );
8888 }
89+
8990 /**
9091 * Fetch a file.
9192 *
@@ -127,12 +128,13 @@ public function fetch(Request $request)
127128
128129 return response ()->json ($ response );
129130 }
131+
130132 /**
131133 * Download a file.
132134 *
133135 * @param \Illuminate\Http\Request $request
134136 *
135- * @return file
137+ * @return Array
136138 */
137139 private function download ($ url , $ config )
138140 {
@@ -144,7 +146,7 @@ private function download($url, $config)
144146 if (strpos ($ imgUrl , 'http ' ) !== 0 ) {
145147 return $ this ->error ('ERROR_HTTP_LINK ' );
146148 }
147-
149+
148150 $ context = stream_context_create (
149151 array ('http ' => array (
150152 'follow_location ' => false , // don't follow redirects
@@ -168,7 +170,6 @@ private function download($url, $config)
168170 'file ' => $ img ,
169171 'filename ' => $ filename ,
170172 ];
171-
172173 }
173174
174175 /**
You can’t perform that action at this time.
0 commit comments