<!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 &quot;Attach:file.ext&quot; to upload a file and go through the process of identifying the file to be uploaded and giving it a name, pushing the &quot;upload&quot; button produces a dialog box wanting to download pmwiki.php.<BR>
*&nbsp; 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&nbsp; $EnableUpload off and on - doesn't do anything.<BR>
- Initially used&nbsp;&nbsp; $UploadPrefixFmt = '/$Group/$Name' instead of&nbsp;&nbsp;&nbsp; $HandleAuth['upload'] = 'edit';&nbsp; - 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&nbsp; &quot;xxxx/yyyy/httpdocs/pmwiki/uploads/uploads/&quot;.&nbsp; I talked to the Plesk administrator and he assures me that &quot;/httpdocs/....&quot;&nbsp; is starting from &quot;my&quot; 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.&nbsp; I'd hoped that turning $EnableUpload of and on again might display it, but it didn't.&nbsp; I suspect this of being the problem, but don't know what to do.<BR>
<BR>
config.php<BR>
&nbsp;$EnableUpload = 1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;$HandleAuth['upload'] = 'edit';<BR>
&nbsp;$UploadDir = &quot;/httpdocs/pmwiki/uploads/&quot;;<BR>
&nbsp;$UploadUrlFmt = &quot;<A HREF="http://mitchell.lamp.drexel.edu/pmwiki/uploads/">http://mitchell.lamp.drexel.edu/pmwiki/uploads/</A>&quot;;<BR>
&nbsp;$UploadMaxSize = 1000000; # limit upload file size to 1 megabyte<BR>
&nbsp;$ScriptUrl = '<A HREF="http://mitchell.lamp.drexel.edu/pmwiki/pmwiki.php';">http://mitchell.lamp.drexel.edu/pmwiki/pmwiki.php';</A><BR>
&nbsp;$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>