[pmwiki-users] Uploads question...
Sandy
sandy at onebit.ca
Wed Dec 20 10:55:49 CST 2006
The Editor wrote:
> Can someone explain exactly what I need to do to enable downloads from my site?
>
> I have a page called Main.Downloads with all the files I want to make
> available. The links look like this: Attach:zap.php
>
> I ftp's all my files to Uploads/Main/
>
> In my config I have
>
> $EnableUpload = 1;
> $UploadPrefixFmt = '';
> $UploadExts['php'] = 'scripts';
>
> It seems to be working, but when I click on the file, I get a blank
> page. Am I missing something?
>
> Cheers,
> Dan
I think it's trying to run the file because it's a php file, rather than
downloading it to your computer.
Try right-clicking (Firefox) and selecting Download File, then open the
resulting file in a text editor.
Also try putting up a file with a .txt extension that contains text
unlikely to be interpreted as a program. It should open in the browser
showing the text.
Hope this helps,
Sandy
-----
Experience means you've made the mistake before. I proudly claim to be
very experienced.
More information about the pmwiki-users
mailing list