summaryrefslogtreecommitdiff
path: root/controllers/micropub.php
diff options
context:
space:
mode:
authorRuxton <ruxton@rhythmandpoetry.net>2017-07-26 13:46:39 +0800
committerRuxton <ruxton@rhythmandpoetry.net>2017-07-26 13:46:39 +0800
commit6f8e186cef22c5c32cd8ec7a34bc4376f8e38970 (patch)
tree91c691f113a85195610be6b9377539e60d461d8f /controllers/micropub.php
parente590c95c9f21fab9ebf2ba2efd83cca79585cfca (diff)
Ensure original filename+extension is sent
Diffstat (limited to 'controllers/micropub.php')
-rw-r--r--controllers/micropub.php2
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);
}