Menu

uploaded images will not display

Help
qwerty2
2005-06-03
2012-10-11
  • qwerty2

    qwerty2 - 2005-06-03

    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

     
    • qwerty2

      qwerty2 - 2005-06-03

      ... 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();
      ?>

       
      • Reini Urban

        Reini Urban - 2005-06-06

        Yes.
        Thanks for this workaround.
        Committed to current CVS.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.