Commit f1ff330b38bea12966d9ab47c1f1b9387483468c

Authored by Elena.Budnik
1 parent 410b9d9f

https is not implemented for URL file size definition

Showing 1 changed file with 7 additions and 1 deletions   Show diff stats
php/uploadFile.php
@@ -183,7 +183,13 @@ @@ -183,7 +183,13 @@
183 } 183 }
184 184
185 $url = null; 185 $url = null;
186 - 186 +
  187 + if (substr($remoteName,0,5) == 'https')
  188 + {
  189 + $response = array( 'success' => false, 'error' => ' : Sorry, https protocol is no implemented yet');
  190 + die(json_encode($response));
  191 + }
  192 +
187 if (substr($remoteName,0,4) == 'http') $url = 'http'; 193 if (substr($remoteName,0,4) == 'http') $url = 'http';
188 if (substr($remoteName,0,3) == 'ftp') $url = 'ftp'; 194 if (substr($remoteName,0,3) == 'ftp') $url = 'ftp';
189 195