Hi,
I successfully uploaded PNG image using Upload page. An record was successrully written to a log file.
But, when I open SandBox and write [Upload:name.png], all I see is a text "name.png" instead of a real picture displayed.
I tried to use [http://myserver/phpwiki/uploads/name.png], but no result expect for a record in Apache error log:
[date+time] [alert] [client my_IP] /my_path/uploads/.htaccess: Options not allowed here, referer: http://my_path/index.php/SandBox
I found out, that after deleting file uploads/.htaccess, both of two formats above work fine!
What is wrong with uploads/.htaccess?
This is it's contents:
Options +Indexes DirectoryIndex ../index.php?pagename=UpLoad
... looking at the directives in .htaccess...
Is it the same to delete .htaccess and create uploads/index.php with this contents?
<?php header( "location: ../index.php?pagename=UpLoad" ); exit(); ?>
Yes. Thanks for this workaround. Committed to current CVS.
Log in to post a comment.
Hi,
I successfully uploaded PNG image using Upload page. An record was successrully written to a log file.
But, when I open SandBox and write [Upload:name.png], all I see is a text "name.png" instead of a real picture displayed.
I tried to use [http://myserver/phpwiki/uploads/name.png], but no result expect for a record in Apache error log:
[date+time] [alert] [client my_IP] /my_path/uploads/.htaccess: Options not allowed here, referer: http://my_path/index.php/SandBox
I found out, that after deleting file uploads/.htaccess, both of two formats above work fine!
What is wrong with uploads/.htaccess?
This is it's contents:
$Id: .htaccess,v 1.2 2004/05/06 13:30:52 rurban Exp $
Options +Indexes
DirectoryIndex ../index.php?pagename=UpLoad
... looking at the directives in .htaccess...
Is it the same to delete .htaccess and create uploads/index.php with this contents?
<?php
header( "location: ../index.php?pagename=UpLoad" );
exit();
?>
Yes.
Thanks for this workaround.
Committed to current CVS.