You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
first, thanks a lot for your nice work!
While testing, I have found semantical mistake in File\Upload processor on line 162: if ((boolean)$this->modx->getOption('upload_translit')) { $internalName = $this->modx->filterPathSegment($internalName); $internalName = $this->mediaSource->sanitizePath($internalName); }
The code above uses filterPathSegment method which is not suitable for file names, because it replaces the dot with the dash.
This leads in "file extension" error, becasue without the dot, there is simply no extension found.
The text was updated successfully, but these errors were encountered:
Hi!
The problem is somewhat larger. If the upload_translit setting is enabled, then in some cases the file may still lose the extension dot. Look at this issue: modxcms/revolution#16551
Hi! The problem is somewhat larger. If the upload_translit setting is enabled, then in some cases the file may still lose the extension dot. Look at this issue: modxcms/revolution#16551
Hi,
first, thanks a lot for your nice work!
While testing, I have found semantical mistake in File\Upload processor on line 162:
if ((boolean)$this->modx->getOption('upload_translit')) { $internalName = $this->modx->filterPathSegment($internalName); $internalName = $this->mediaSource->sanitizePath($internalName); }
The code above uses filterPathSegment method which is not suitable for file names, because it replaces the dot with the dash.
This leads in "file extension" error, becasue without the dot, there is simply no extension found.
The text was updated successfully, but these errors were encountered: