From 9b311580c022c0d89db3b489fdc04e8bea00aae1 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Wed, 18 Jun 2008 17:39:45 +0000 Subject: [PATCH] Fixed stock item image upload bug. --- CHANGELOG.txt | 2 ++ inventory/manage/items.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 0e88b440..b83cd89b 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -38,6 +38,8 @@ $ /includes/ui/ui_lists.inc $ /js/inserts.js # Fixed addAssign() js handler for nonstandard attributes $ /js/utils.js +# Fixed bug in stock item image upload +$ /inventory/manage/items.php 17-Jun-2008 Joe Hunt ! More files with Quantity routines needed fix due to php4 related issue. diff --git a/inventory/manage/items.php b/inventory/manage/items.php index 199addb2..967cb5e6 100644 --- a/inventory/manage/items.php +++ b/inventory/manage/items.php @@ -44,7 +44,7 @@ if (isset($_FILES['pic']) && $_FILES['pic']['name'] != '') { mkdir($filename); } - $filename .= "$stock_id.jpg"; + $filename .= "/$stock_id.jpg"; //But check for the worst if (strtoupper(substr(trim($_FILES['pic']['name']), strlen($_FILES['pic']['name']) - 3)) != 'JPG') -- 2.30.2