The Upload.php plugin produces an incorrect
on the current upload page that points to the uploads
directory, when in fact the file was uploaded into
This appears to occur because the PHPWIKI_DIR
symbol is NOT defined in the config.ini file. When this
symbol is omitted (default condition), the config.php
program function getUploadFilePath() returns the
second, default trinary value (mydocuments/) to the
logic that actually copies the upload file, placing it in the
mydocuments directory. However, the link on the
current page is generated with the incorrect href pointing
to the uploads directory. So, when you attempt to view
the uploaded file, it's not found.
Possible solution 1: make the PHPWIKI_DIR symbol
defined and required in the config.ini file.
Possible solution 2: modify the link function to generate
the correct location based on where the upload file was
Log in to post a comment.