<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Upload setup produces download pmwiki.php dialog box</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><TT><FONT SIZE=2>I'm a new, happy user of PmWiki (thank you!) with a problem setting up uploads correctly.<BR>
<BR>
Problem Definition<BR>
When I set up an "Attach:file.ext" to upload a file and go through the process of identifying the file to be uploaded and giving it a name, pushing the "upload" button produces a dialog box wanting to download pmwiki.php.<BR>
*  If I let it download the file and open it, the file is empty.<BR>
* I cannot get it to upload my test file<BR>
<BR>
What I've tried<BR>
- Turned  $EnableUpload off and on - doesn't do anything.<BR>
- Initially used   $UploadPrefixFmt = '/$Group/$Name' instead of    $HandleAuth['upload'] = 'edit';  - didn't do any better<BR>
<BR>
<BR>
<BR>
Relevant Information<BR>
<BR>
Initial Server information when turned on uploading.<BR>
It gave me a path something like  "xxxx/yyyy/httpdocs/pmwiki/uploads/uploads/".  I talked to the Plesk administrator and he assures me that "/httpdocs/...."  is starting from "my" root so I don't quite understand.<BR>
<BR>
Unfortunately I didn't save that path information and cannot figure out how to retrieve it.  I'd hoped that turning $EnableUpload of and on again might display it, but it didn't.  I suspect this of being the problem, but don't know what to do.<BR>
<BR>
config.php<BR>
 $EnableUpload = 1;                      <BR>
 $HandleAuth['upload'] = 'edit';<BR>
 $UploadDir = "/httpdocs/pmwiki/uploads/";<BR>
 $UploadUrlFmt = "<A HREF="http://mitchell.lamp.drexel.edu/pmwiki/uploads/">http://mitchell.lamp.drexel.edu/pmwiki/uploads/</A>";<BR>
 $UploadMaxSize = 1000000; # limit upload file size to 1 megabyte<BR>
 $ScriptUrl = '<A HREF="http://mitchell.lamp.drexel.edu/pmwiki/pmwiki.php';">http://mitchell.lamp.drexel.edu/pmwiki/pmwiki.php';</A><BR>
 $PubDirUrl = '<A HREF="http://mitchell.lamp.drexel.edu/pmwiki/pub';">http://mitchell.lamp.drexel.edu/pmwiki/pub';</A><BR>
<BR>
Permissions<BR>
My uploads directory and subdirectories have permissions set to 777<BR>
<BR>
PHP Info v5.0.4 - I don't understand it - just copied from the phpinfo page<BR>
Linux 216-110-190-158.ptr.primarydns.com 2.6.9-023stab041.3-enterprise #1 SMP Wed Feb 14 13:36:44 MSK 2007 i686<BR>
<BR>
Server<BR>
Virtual Server running under Plesk<BR>
Path to upload directory is as in $UploadDir</FONT></TT>
</P>
</BODY>
</HTML>