diff options
author | Aaron Parecki <aaron@parecki.com> | 2017-08-17 09:07:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-17 09:07:49 -0700 |
commit | 62f6a17c6b3fa666ad29b4564e7cf3455148e8a6 (patch) | |
tree | 162668cbe71b5343da885f84f678deddcd279d4e /controllers | |
parent | e590c95c9f21fab9ebf2ba2efd83cca79585cfca (diff) | |
parent | 0cba1cb9cdd2f7b8b7fb5f439984d40ea34dc6c2 (diff) |
Merge pull request #82 from Ruxton/master
Ensure original filename+extension is sent
Diffstat (limited to 'controllers')
-rw-r--r-- | controllers/micropub.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controllers/micropub.php b/controllers/micropub.php index 871c9cf..a1c3a26 100644 --- a/controllers/micropub.php +++ b/controllers/micropub.php @@ -52,7 +52,7 @@ $app->post('/micropub/multipart', function() use($app) { if(!$error) { $file_path = $file['tmp_name']; correct_photo_rotation($file_path); - $r = micropub_post_for_user($user, $_POST, $file_path); + $r = micropub_post_for_user($user, $_POST, $file); } else { $r = array('error' => $error); } |