diff options
| author | Kieran Harkin <kieran@harkin.me> | 2015-06-24 11:54:56 +0200 |
|---|---|---|
| committer | Kieran Harkin <kieran@harkin.me> | 2015-06-24 11:54:56 +0200 |
| commit | 7ab7199e5e2911ec819bdcb6a0f9c73e561c482a (patch) | |
| tree | b65a7eceb2bdc4d9737b2740a367b7f170e2549b /static | |
| parent | 9d70ac386192ef044d5d9a2ad6df004151ed1626 (diff) | |
pass full url
Diffstat (limited to 'static')
| -rw-r--r-- | static/upload.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |
