[pmwiki-users] Uploads

Tegan Dowling tmdowling at gmail.com
Tue Nov 14 13:41:17 CST 2006


On 11/14/06, Mark Trumpold <mark at ruthtrumpold.id.au> wrote:
>
>
>
> On 14/11/06 9:08 PM, "Sandy" <sandy at onebit.ca> wrote:
>
> > Mark Trumpold wrote:
> >> Hi All
> >>
> >> I know I sent this out but I still don't get it.
> >>
> >> I would like my students to be able to UL a file/image to a folder via the
> >> edit form/page.
> >>
> >> I have the guiedit icon and the markup but I cant get it so they can browse
> >> for the file on their HD and then UL it to my server.
> >>
> >> How do it do it?
> >>
> >> Cheers
> >>
> >> Mark
> >
> > 1. Assuming you've set
> > $EnableUpload = 1;
> > $DefaultPasswords['upload'] = crypt('whatever');
> >
> > 2a. In the page you're editing, add a link to the new file and upload
> > it. Ignoring the GUI buttons, enter one of the following wiki-text:
> > Attach:linkname
> > [[Attach:image.jpg]])
> > [[(Attach:)file.ext]]
> >
> > Each one gives a different result, explained in
> > http://pmwiki.org/wiki/PmWiki/Uploads under Attach: Syntax.
> >
> > 2b. Use the Upload link. It's part of the default install, in
> > Site.PageActions. The default skin puts this at the top right.
> >
> > Either way, the link should open a new page and form, with JavaScript,
> > similar to:
> > http://www.pmwiki.org/wiki/Cookbook/Skins?action=upload
> >
> > Hope this helps,
> >
> > Sandy
> >
>
> Thanks for the quick reply.
>
> 2b  http://www.pmwiki.org/wiki/Cookbook/Skins?action=upload
> is exactly what I want, however ... I do not not see it on the top right, I
> assume you are referring to the PM default. I get print, edit, ... But no
> upload.
>
> Maybe I deleted it at the beginning, who knows. Is there a way I can replace
> it so the 'upload' feature is there for my students.
>

It may not display because you may not have set the permissions
properly, OR you're not logged in with a password that has
authorization to upload.  You can see the code at
http://www.pmwiki.org/wiki/Site/PageActions?action=source.  Note where
it says

(:if auth upload:)
* %item rel=nofollow class=upload    accesskey='$[ak_attach]'%
[[{*$FullName}?action=upload | $[Attach] ]]
(:if:)

If that isn't on your own site's Site/PageActions, then you can copy
the markup from the pmwiki site's version and paste it in your own.




More information about the pmwiki-users mailing list