From 7ab7199e5e2911ec819bdcb6a0f9c73e561c482a Mon Sep 17 00:00:00 2001 From: Kieran Harkin Date: Wed, 24 Jun 2015 10:54:56 +0100 Subject: pass full url --- static/upload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static/upload.php') diff --git a/static/upload.php b/static/upload.php index 5675eeb..4a209f3 100644 --- a/static/upload.php +++ b/static/upload.php @@ -86,7 +86,7 @@ function upload_file ($file) { return array( 'hash' => $file->get_sha1(), 'name' => $file->name, - 'url' => POMF_URL . $result['filename'], + 'url' => $result['filename'], 'size' => $file->size ); } @@ -125,7 +125,7 @@ function upload_file ($file) { return array( 'hash' => $file->get_sha1(), 'name' => $file->name, - 'url' => $newname, + 'url' => POMF_URL . $newname, 'size' => $file->size ); } else { -- cgit v1.2.3