Skip to content

Error message when uploading files #33

@BenceSzalai

Description

@BenceSzalai

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions