From: Janusz Dobrowolski Date: Wed, 18 Jun 2008 17:39:45 +0000 (+0000) Subject: Fixed stock item image upload bug. X-Git-Tag: v2.4.2~19^2~2006 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=9b311580c022c0d89db3b489fdc04e8bea00aae1;p=fa-stable.git Fixed stock item image upload bug. --- 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')