Solution: Used Uploadify. Working on making a button for PmWiki now. -Jagtig
I'd like to include some pages that contain some attachments. But I don't want to have to add
How do I prevent files being uploaded with no extension?
How can I set a password required when using the custom upload button?
Is it possible to create subdirectories for organizing attachments (within the same group)? Specifically, I'm thinking of images... would be very handy....
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"
To restore the default behavior to only logged in users (assuming using AuthUser)
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)
Antony Templier October 12, 2011, at 11:36 AM
Some additional file extensions you can add
## PmWiki: add additional file types that can be uploaded $UploadExts['iso'] = 'application/octetstream'; # CD Disc image $UploadExts['pdf'] = 'application/pdf'; # PDF document ## Office $UploadExts['vsd'] = 'application/vnd.visio'; # Visio document $UploadExts['vst'] = 'application/vnd.visio'; # Visio document template $UploadExts['csv'] = 'text/plain'; # Comma separated value file $UploadExts['dot'] = 'application/msword'; # Word document template $UploadExts['sql'] = 'text/plain'; # Sql script $UploadExts['mpp'] = 'application/msproject'; # Project document $UploadExts['msg'] = 'application/msoutlook'; # Outlook email message $UploadExts['pps'] = 'application/mspowerpoint'; # # for Office 2007, 2010, 2013 $UploadExts['docx'] = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'; # Office 2007 document $UploadExts['dotx'] = 'application/vnd.openxmlformats-officedocument.wordprocessingml.template'; # Office 2007 document template $UploadExts['potx'] = 'application/vnd.openxmlformats-officedocument.presentationml.template'; # Office 2007 presentation template $UploadExts['ppsx'] = 'application/vnd.openxmlformats-officedocument.presentationml.slideshow'; # Office 2007 slideshow $UploadExts['pptx'] = 'application/vnd.openxmlformats-officedocument.presentationml.presentation'; # Office 2007 presentation $UploadExts['sldx'] = 'application/vnd.openxmlformats-officedocument.presentationml.slide'; # Office PowerPoint 2007 slide $UploadExts['xlsx'] = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; # Office 2007 spreadsheet $UploadExts['xltx'] = 'application/vnd.openxmlformats-officedocument.spreadsheetml.template'; # Office 2007 spreadsheet template ## PmWiki: set upload sizes $UploadExtSize[''] = 0; # disallow no extension files ## StarterPack