added upload via base64 and via url

This commit is contained in:
Chris
2018-12-25 23:41:22 +01:00
parent c649233835
commit b6609b1df2
5 changed files with 250 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ if($_REQUEST['api_paste_code'])
exit(URL.$sha_hash);
$answer = (new TextController())->handleUpload($tmpfile,$hash);
if($answer['hash'])
if($answer['hash'] && $answer['status']=='ok')
addSha1($answer['hash'],$sha1);
echo URL.$hash;