Index: /mods/wpsg_mod_downloadprodukte.class.php
===================================================================
--- /mods/wpsg_mod_downloadprodukte.class.php	(revision 8458)
+++ /mods/wpsg_mod_downloadprodukte.class.php	(revision 8459)
@@ -185,15 +185,15 @@
 		{
 			
-			$temp = wpsg_getStr($_FILES['wpsg_mod_downloadprodukte_file']['tmp_name'][0]);
+			$temp = wpsg_getStr($_FILES['wpsg_mod_downloadprodukte_file']['tmp_name']);
 			
 			if (file_exists($temp)) {
-				
+
 				$uploaddir = $this->getFilePath($produkt_id);
 				
 				$this->shop->protectDirectory($uploaddir);
 								
-				$uploadfile = $uploaddir.basename($_FILES['wpsg_mod_downloadprodukte_file']['name'][0]);
-				
-				move_uploaded_file($_FILES['wpsg_mod_downloadprodukte_file']['tmp_name'][0], $uploadfile);
+				$uploadfile = $uploaddir.basename($_FILES['wpsg_mod_downloadprodukte_file']['name']);
+				
+				move_uploaded_file($_FILES['wpsg_mod_downloadprodukte_file']['tmp_name'], $uploadfile);
 				
 				if ($die) die('1');
@@ -215,6 +215,8 @@
 		 * @return array Files
 		 */
-		public function getProdFiles($produkt_id)
-		{
+		public function getProdFiles($produkt_key)
+		{
+
+			$produkt_id = $this->shop->getProduktID($produkt_key);
 
 			if (!file_exists($this->getFilePath($produkt_id))) return [];
@@ -263,4 +265,9 @@
  		public function getFilePath($produkt_id, $url = false)
  		{
+
+			 if (intval($produkt_id) <= 0) {
+				 debug_print_backtrace();
+
+				 throw new \Exception("UngÃŒltige Produkt-ID");}
  		 
  			if ($this->shop->isMultiBlog())
Index: /views/mods/mod_downloadprodukte/produkt_addedit_sidebar.phtml
===================================================================
--- /views/mods/mod_downloadprodukte/produkt_addedit_sidebar.phtml	(revision 8458)
+++ /views/mods/mod_downloadprodukte/produkt_addedit_sidebar.phtml	(revision 8459)
@@ -10,37 +10,8 @@
 /* <![CDATA[ */
 
-	jQuery(document).ready(function() {	
-
-		<?php if ($this->get_option('wpsg_classicupload') != '1') { ?>
-		new AjaxUpload(
-			"upload_produktfile_button", {
-				name: "wpsg_mod_downloadprodukte_file",
-				action: "<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadprodukte&edit_id=<?php echo $this->view['data']['id'] ?>&noheader=1&cmd=upload_file",
-				onSubmit: function(file, extension) {
-	
-					jQuery('#produktfiles_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-					
-				},
-				onComplete: function(file, response) {
-					//alert(response);
-					if (response == '1')
-					{
-						//jQuery("#produktfiles_target").html('lalal');
-						jQuery("#produktfiles_target").load("<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_downloadprodukte&cmd=produktfiles_list&edit_id=<?php echo $_REQUEST['edit_id']; ?>&noheader=1");
-					}
-					else
-					{
-						alert(response);
-					}
-				}										
-			}
-		);
-		<?php } ?>
-							   
-	} );
-
 	/**
 	 * Wird beim lÃ¶schen einer Datei aufgerufen
 	 */
+
 	function wpsg_remove_file(strFile)
 	{
