static public function getUploadFileRelativePath($filename)
    {
        if ($filename) {
            $filename = str_replace('\\', '/', $filename);
            
            $filename = str_replace(static::getUploadUrl(), '', $filename);
            
            $filename = trim(str_replace(static::getUploadPath(), '', $filename), '/');
            
            if (strpos($filename, 'http') === 0) {
                $filename = str_replace(static::getRootUrl(), '', $filename);
            }
        }
        
        return $filename;
    }
static public function getUploadFileRelativePath($filename)
    {
        if ($filename) {
            $filename = str_replace('\\', '/', $filename);
            
            $filename = str_replace(static::getUploadUrl(), '', $filename);
            
            $filename = trim(str_replace(static::getUploadPath(), '', $filename), '/');
            
            if (strpos($filename, 'http') === 0) {
                $filename = str_replace(static::getRootUrl(), '', $filename);
            }
        }
        
        return $filename;
    }
static public function getUploadFileRelativePath ( $ filename ) { if ( $ filename ) { $ filename = str_replace ( '\\' , '/' , $ filename ) ; $ filename = str_replace ( static :: getUploadUrl ( ) , '' , $ filename ) ; $ filename = trim ( str_replace ( static :: getUploadPath ( ) , '' , $ filename ) , '/' ) ; if ( strpos ( $ filename , 'http' ) === 0 ) { $ filename = str_replace ( static :: getRootUrl ( ) , '' , $ filename ) ; } } return $ filename ; }
get upload file relative path
@param  string $filename
@return string
get upload file relative path