View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004630 | OXID eShop (all versions) | 2. ----- eShop backend (admin) ----- | public | 2012-10-16 10:43 | 2012-11-19 09:06 |
Reporter | zuernBernhard | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | LAMPP | OS | Ubuntu Linux | OS Version | 12.04 LTS |
Product Version | 4.6.4 revision 49061 | ||||
Fixed in Version | 4.6.6 revision 54646 | ||||
Summary | 0004630: Can't Upload Pictures for Products in the Backend for Products which do not already have a picture | ||||
Description | When you have Products without Pictures there is no path like out/master/product/2 so the move_uploaded_file will fail because the target-dir does not exist. | ||||
Steps To Reproduce | create a Product wihout images, go to this product in the shopbackend and try to upload an image | ||||
Additional Information | already fixed that locally by adding: { $blDone = false; + if (!is_dir(dirname($sTarget))){ + mkdir(dirname($sTarget), 0744, true); + } + if ( $sSource === $sTarget ) { $blDone = true; } else { to the method protected function _moveImage( $sSource, $sTarget ) in core/oxutilsfile.php | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | 5.3 | ||||
Database Version | 5.1 | ||||