Skip to content
New issue

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

Error message when uploading files #33

Open
BenceSzalai opened this issue Feb 7, 2022 · 0 comments
Open

Error message when uploading files #33

BenceSzalai opened this issue Feb 7, 2022 · 0 comments

Comments

@BenceSzalai
Copy link

In the state column ModX says "The webserver does not have the necessary permissions to update the directory." after file upload.

The reason apparently is that FileSluggy renames the uploaded file, but ModX for some reason still calls the renameObject method in core/model/modx/sources/modfilemediasource.class.php with the original filename, and the if (!$oldFile->isReadable() || !$oldFile->isWritable()) { check fails obviously, as the file has been renamed already and the $oldFile points still to the original filename.

ModX version: 2.8.3
FileSluggy version: 1.3.4

Actually the file is uploaded fine, but still it looks bad to have the big red error message every time someone uploads a file.

Is this something considered "normal" for the plugin or is it something specific to my deployment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant