[Pmwiki-users] Can't get attachments working

Chris Lott chris.lott
Sat Dec 4 11:33:55 CST 2004

Still having the same problem-- it seems to be working until I hit the
upload button then I get bounced back to the main page and the file
never uploads. Here is my new relevant configuration info:

** config.php
$ScriptUrl = 'http://www.chrislott.org/pmwiki';
$PageUrlFmt = 'http://www.chrislott.org/pmwiki/$Group/$Title_';
$PubDirUrl = 'http://www.chrislott.org/pmwiki/pub';
$UploadUrlFmt = 'http://www.chrislott.org/pmwiki/uploads';

$EnableUpload = 1;
$DefaultPasswords['upload'] = crypt('chrislottt');

DirectoryIndex pmwiki.php
AddType application/x-httpd-php .php

RewriteEngine on
RewriteBase /pmwiki
RewriteRule ^([A-Z].*) pmwiki.php?pagename=$1 [L,qsappend]

On Fri, 3 Dec 2004 08:45:50 -0700, Patrick R. Michaud
<pmichaud at pobox.com> wrote:
> On Thu, Dec 02, 2004 at 09:37:03PM -0900, Chris Lott wrote:
> > I can't seem to get attachments to work. I can use the Attach:xxx.gif
> > (for example) tag and I get an upload link taking me to a form... but
> > when I submit the form I just get bounced back to the home page (no
> > matter which page I am trying to add an image to):
> >
> > Here is the relevant info from .htaccess:
> > RewriteEngine on
> > RewriteBase /pmwiki
> > RewriteRule ^([A-Z].*) /home/chrisl/public_html/pmwiki/pmwiki.php?pagename=$1 [L ,qsappend]
> Your Rewrite rule is incorrect -- it should rewrite to a url,
> not to a filesystem path name.  You probably want something like
> RewriteRule ^([A-Z].*) pmwiki.php?pagename=$1 [L, qsappend]
> Pm

Chris Lott

More information about the pmwiki-users mailing list