This is a comment on Cannot refer to uploaded files, posted by coffe1nk at 04.05.2022 13:31

View source for Re: Cannot refer to uploaded files

Hi WikiAdmin,

1. //the path to the file is false// --> The path is correct and has the right permission.
  * the file path is: ##file/perpage/@18@image_21.png##

  ((https://i.ibb.co/k5Trrsr/screenshot-127.jpg))

  ((https://i.ibb.co/sb5DxBs/screenshot-124.jpg))

  ((https://i.ibb.co/KyMBGMf/screenshot-128.jpg))


2. //the file upload failed// --> Upload is succeded.
  * After upload a file, I got ##File upload successful## but also ##File not found## messages

  ((https://i.ibb.co/q9W1XzB/screenshot-125.jpg))

3. //the file folder has insufficient access rights// --> 'file/perpage' and 'file/global' have permission (I have tried full 777 permission)

4. //check the file/perpage/ and file/folder/ folder as well the file table in the database// --> There are no data in the 'file' and 'file_link' tables.

  ((https://i.ibb.co/vDtcrTs/screenshot-126.jpg))

5. //Do you use mod_rewrite//  --> I have tried both 'subdomain' and 'subdirectory'

%%<VirtualHost 192.168.50.6:80>
    DocumentRoot /apps/testapp/wacko_test1/htdocs/
    ServerAlias wacko.kmb-note
    <Directory /apps/testapp/wacko_test1/htdocs/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>%%

and this

%%Alias /wacko_test1/ "/apps/webapps/wacko_test1/htdocs/"
Alias /wacko_test1 "/apps/webapps/wacko_test1/htdocs"

<Directory "/apps/webapps/wacko_test1/htdocs">
	Options Indexes FollowSymLinks
	AllowOverride All
	
	<IfVersion < 2.3 >
		Order allow,deny
		Allow from all
		Satisfy all
	</IfVersion>
	<IfVersion >= 2.3>
		Require all granted
	</IfVersion>
</Directory>%%

and in the .htaccess (for subdir)
%%<IfModule mod_rewrite.c>
	<IfModule mod_env.c>
		SetEnv HTTP_MOD_REWRITE on
	</IfModule>
	RewriteEngine on
	RewriteBase /wacko_test1/
	RewriteRule ^(index.php?.*)$ - [S=1]
    RewriteRule ^(.*)$ /wacko_test1/index.php?page=$1 [QSA,PT,L]
</IfModule>%%

Thanks and regards