[pmwiki-users] Upload problem on OS X (problem solved I think)

Jan Erik Moström lists at mostrom.pp.se
Tue Jan 1 19:53:46 CST 2008


Jan Erik Moström <lists at mostrom.pp.se> 08-01-01 20.25

>Patrick R. Michaud <pmichaud at pobox.com> 08-01-01 13.07
>
>>Perhaps your PHP or apache server isn't configured to allow
>>file uploads?
>
>In order to try this I took the script found at <http://www.w3schools.com/php/php_file_upload.asp>
>
>and when I run it I get
>
>Upload: wer.jpg
>Type: image/jpeg
>Size: 8.7021484375 Kb
>Stored in: /private/var/tmp/phpgGIry0
>
>(I can't find the file but I suspect it's automatically deleted 
>when the php script is completed -- I'm not PHP person so I'm 
>just guessing)
>
>>I suspect it has something to do with server or PHP configuration,
>>as opposed to being an issue with PmWiki.
>
>I agree ... I have had no problems earlier but this is the 
>first time I'm trying on 10.5 so probably something has changed 
>(apart from going to apache 2)

Getting a bit desperate, since I have no idea what could be 
causing my problems, I set up a temporary sub-domain on my linux 
server and copied the PmWiki installation from my Mac. I changed

$ScriptUrl = 'http://127.0.0.1/~jem/slakt/pmwiki.php';
$PubDirUrl = 'http://127.0.0.1/~jem/slakt/pub';

to point to the sub-domain and upload worked on the first 
attempt. So I copied a new config file to local and only changed

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

No change. Before getting really upset I decided to try Firefox 
... and it works. A few more tests shows that upload doesn't 
work using OmniWeb or Safari but on Firefox ... I have no idea why.

                     jem
-- 
Jan Erik Moström, www.mostrom.pp.se




More information about the pmwiki-users mailing list