View Issue Details

IDProjectCategoryView StatusLast Update
0001526OXID eShop (all versions)4.08. Cachepublic2012-12-10 15:32
ReporterTokeiito Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Summary0001526: oxutilsfile->handleUploadedFile appending file extention twice
Descriptionwhen 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 Informationcore/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
TagsNo tags attached.
Attached Files
oxutilsfile.php (21,860 bytes)
Theme
Browser
PHP Version
Database Version

Relationships

duplicate of 0001451 resolvedarvydas_vapsva media file get double extension 

Activities

dainius.bigelis

2009-12-07 08:46

reporter   ~0002175

Reminder sent to: Tokeiito

Hi,

Can you tell us what is the version and edition of your eShop?
OXID eShop easy?

Best regards,

dainius.bigelis

2009-12-07 10:47

reporter   ~0002177

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".

dainius.bigelis

2009-12-07 10:59

reporter   ~0002178

Duplicate of 0001451. It is fixed already.