[pmwiki-users] Uploads question...
The Editor
editor at fast.st
Wed Dec 20 11:06:20 CST 2006
Thanks Sandy. when I try to download it in FireFox (save link as) it
tries to save it as zap.php.htm. When I open it, no file is found.
Also, if I try to view source in notepad directly from FireFox, it
says page not found.
Any other ideas?
By the way, if I put attachlist on the page, I see all the files--with
the little upload triangle, but they do the same thing. The
Attach:File.Ext markup shows a link but no triangle. I've never had
problems with the PmWiki site...
Cheers,
Dan
On 12/20/06, Sandy <sandy at onebit.ca> wrote:
> 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.
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
More information about the pmwiki-users
mailing list