View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001526 | OXID eShop (all versions) | 4.08. Cache | public | 2009-12-07 03:09 | 2012-12-10 15:32 |
Reporter | Tokeiito | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Summary | 0001526: oxutilsfile->handleUploadedFile appending file extention twice | ||||
Description | when you use this function, extension of the file is appended to name twice. so in the end function _getUniqueFileName and file existence checking does not work. | ||||
Additional Information | core/oxutilsfile.php function HandleUploadedFile around 605 line. $sFileName = $this->_getUniqueFileName( $sBasePath . "/" .$sUploadPath, $sFileName, $sExt ); this one returns to us file with extension already: function _getUniqueFileName return $sFileName . "." . $sFileExt; and after that in first function we append extension second time $this->_moveImage( $aFileInfo['tmp_name'], $sBasePath . "/" .$sUploadPath . "/" . $sFileName . "." . $sExt ); I'm attaching file with fix. All i done - removed appending of extension after we get file name with _getUniqueFileName | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Theme | |||||
Browser | |||||
PHP Version | |||||
Database Version | |||||
duplicate of | 0001451 | resolved | arvydas_vapsva | media file get double extension |
|
Reminder sent to: Tokeiito Hi, Can you tell us what is the version and edition of your eShop? OXID eShop easy? Best regards, |
|
This case is quite strange. Initially it was assigned to OXID easy project, but having this edition shop - user has no access to .php files at all. Also maintainance of OXID easy project has ended. So for developers: please check if there is the same issue in the 4th version eShop. If yes - please fix it. If there is no such issue in 4th version eShop - close it as "Won't fix". |
|
Duplicate of 0001451. It is fixed already. |