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
37
37
*/
38
38
public function __construct (array $ result )
39
39
{
40
- // $this->file = $file;
41
40
$ this ->result = $ result ;
42
41
}
43
42
}
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ public function upload(Request $request)
86
86
87
87
return response ()->json ($ response );
88
88
}
89
+
89
90
/**
90
91
* Fetch a file.
91
92
*
@@ -127,12 +128,13 @@ public function fetch(Request $request)
127
128
128
129
return response ()->json ($ response );
129
130
}
131
+
130
132
/**
131
133
* Download a file.
132
134
*
133
135
* @param \Illuminate\Http\Request $request
134
136
*
135
- * @return file
137
+ * @return Array
136
138
*/
137
139
private function download ($ url , $ config )
138
140
{
@@ -144,7 +146,7 @@ private function download($url, $config)
144
146
if (strpos ($ imgUrl , 'http ' ) !== 0 ) {
145
147
return $ this ->error ('ERROR_HTTP_LINK ' );
146
148
}
147
-
149
+
148
150
$ context = stream_context_create (
149
151
array ('http ' => array (
150
152
'follow_location ' => false , // don't follow redirects
@@ -168,7 +170,6 @@ private function download($url, $config)
168
170
'file ' => $ img ,
169
171
'filename ' => $ filename ,
170
172
];
171
-
172
173
}
173
174
174
175
/**
You can’t perform that action at this time.
0 commit comments