Recent Changes - Search:

PmWiki

pmwiki.org

Uploads-Talk

I think the UploadQuickReference should be changed to say "Use the top button above to find the "FIle to upload" on your local computer. Currently it says use the "Browse" button, which is what Firefox calls the button, but Safari and Chrome call it a "Choose file" button, and Opera calls it a "Choose…" button. It would be less confusing to users to simply refer to the "top" button. -- RandyB September 18, 2014, at 12:37 AM

Agreed. Also, on a localized browser, the button text is translated into the language of the user. --Petko September 18, 2014, at 03:19 AM

How does the translate work when "Choose file" does not appear to be a string that can be localised?

simon September 18, 2014, at 06:32 PM

The string "Site.UploadQuickReference" can be localized, then another (translated) page will be used. As explained above, the button is labeled differently in different browsers in the same language, so we don't need to insist on the button label. --Petko September 19, 2014, at 01:47 AM


I'd like to include some pages that contain some attachments. But I don't want to have to add {$Group}./ or {$FullName}./ to all Attach links: I'll forget most of them! Any workaround? Tia.

How do I prevent files being uploaded with no extension?

See the Uploads Admin page

Subdirectories?

Is it possible to create subdirectories for organizing attachments (within the same group)? Specifically, I'm thinking of images... would be very handy....

thanks, Mike

Yes, see the variable $UploadPrefixFmt in UploadsAdmin. --Petko December 28, 2009, at 03:48 AM


Is there a way to hide the "triangle" behind attachment links? Perhaps make it visible to logged in users only? Thanks.

Add to your config.php :

To hide the "triangle"
$LinkUploadCreateFmt = "<a rel='nofollow' class='createlinktext' href='\$LinkUpload'>\$LinkText</a>";

To restore the default behavior to only logged in users (assuming using AuthUser)
if (@$_SESSION['authid']) { $LinkUploadCreateFmt = "<a rel='nofollow' class='createlinktext' href='\$LinkUpload'>\$LinkText</a><a rel='nofollow' class='createlink' href='\$LinkUpload'>&nbsp;&Delta;</a>"; }

Antony Templier October 12, 2011, at 08:19 AM

Thanks, that worked great for hiding the delta! But it is not showing up for logged in users. Could the problem be that I'm using Cookbook.UserAuth2?

John October 12, 2011, at 9:51 AM (EST)

Yes, this tip is for the default authorization system : AuthUser. For UserAuth2, maybe you can try this (but i don't use it, you 'll have to validate yourself) :

To restore the default behavior to only logged in users (assuming using UserAuth2)
if (@$GLOBALS['IsUserLoggedIn']) { $LinkUploadCreateFmt = "<a rel='nofollow' class='createlinktext' href='\$LinkUpload'>\$LinkText</a><a rel='nofollow' class='createlink' href='\$LinkUpload'>&nbsp;&Delta;</a>"; }

Antony Templier October 12, 2011, at 11:36 AM


This is a talk page for improving PmWiki.Uploads.

Edit - History - Print - Recent Changes - Search
Page last modified on September 19, 2014, at 01:47 AM