We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if on windows we run:
->set('data/'temp/file.jpg')->move('data/images/image.jpg')
execution fails w/o error. It probably returns false, but I expect CException.
It fails because resolveDestPath doesn't work correctly on Windows. In my example it will return
'data/temp\data/temp/file.jpg'
This happens because of the following lines on code:
if (strpos($fileDest, DIRECTORY_SEPARATOR)===false) return $this->dirname.DIRECTORY_SEPARATOR.$fileDest;
Which probably intended to work as ->set('/path/to/filename')->rename('anotherfilename')
We used to use '/' in all paths in our code and PHP functions work with it correctly.
The text was updated successfully, but these errors were encountered:
I'll look at that next time I happen to Windows %)
Do not forget: it's GitHub — you are free to fork the project and make the appropriate changes.
Sorry, something went wrong.
No branches or pull requests
if on windows we run:
execution fails w/o error. It probably returns false, but I expect CException.
It fails because resolveDestPath doesn't work correctly on Windows. In my example it will return
'data/temp\data/temp/file.jpg'
This happens because of the following lines on code:
Which probably intended to work as ->set('/path/to/filename')->rename('anotherfilename')
We used to use '/' in all paths in our code and PHP functions work with it correctly.
The text was updated successfully, but these errors were encountered: