[pmwiki-users] Uploads revisited
Patrick R. Michaud
pmichaud at pobox.com
Fri Mar 25 10:53:40 CST 2005
On Fri, Mar 25, 2005 at 07:14:25AM -0600, Doug wrote:
> Hi everyone! When I add an upload action to a group AAA wiki page,
> I get the dialog to select and upload a file. After selecting and
> uploading, I get a confirmation that the file was uploaded, but
> when I click on the uploaded file link, I get:
>
> http://www.ispinn.com/wiki/uploads//test3.pdf
>
> note the double forward slash--I'm sure that's problematic.
> [...]
> $UploadPrefixFmt = "/$Group";
> $EnableUpload = 1;
> $UploadDir = "/html/wiki/uploads";
> $UploadUrlFmt = "http://www.ispinn.com/wiki/uploads";
> [...]
> I know I'm close. I think it has something to do with not
> naming the GROUP directory, thus the double forward slashes.
You have double quotes around the setting for $UploadPrefixFmt,
thus it is actually being set to '/' (and this is the reason for the
double-slashes). The correct setting is:
$UploadPrefixFmt = '/$Group';
which delays the determination of the group until when the attachments
are actually being loaded (and the page's true name is known).
> What file maintains the uploaded file history? Is that editable?
> How do I remove the file listings that say test.pdf, test2.pdf with
> filesizes of zero?
...uploaded file history? If you're referring to the list of files
that appears at the bottom of the upload form, it's not a history --
it's just a list of files. To get rid of those, you just need to
remove test2.pdf and test.pdf from your uploads/ directory.
Pm
More information about the pmwiki-users
mailing list