diff --git a/controllers/myplugins.php b/controllers/myplugins.php
index 198e27a25f46b30c11336075ad6c1449b65457d2..728f8f79267dfbbc2d2719d16f597c7801bcb058 100644
--- a/controllers/myplugins.php
+++ b/controllers/myplugins.php
@@ -121,7 +121,7 @@ class MypluginsController extends PluginController {
 
         if (Request::submitted("release")) {
             $release_data = Request::getArray("release");
-            if ($release_data['type'] !== "zipfile" || $_FILES['release_file']['tmp_path']) {
+            if ($release_data['type'] !== "zipfile" || $_FILES['release_file']['tmp_name']) {
                 $release = new MarketRelease();
                 if (!isset($release_data['repository_overwrites_descriptionfrom'])) {
                     $release_data['repository_overwrites_descriptionfrom'] = 0;