From 6f8e186cef22c5c32cd8ec7a34bc4376f8e38970 Mon Sep 17 00:00:00 2001 From: Ruxton Date: Wed, 26 Jul 2017 13:46:39 +0800 Subject: Ensure original filename+extension is sent --- controllers/micropub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'controllers/micropub.php') 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); } -- cgit v1.2.3