I see that .8 has htaccess rules for the module directory allowing only certain filetypes.
What would be best practices for user uploads in modules? Say, a project module which needed some pdf or .ods files uploaded?
Should those be stored in the module tree, or another folder? pnTemp isn't an option for us, as we take that out of the root and need to serve direct links to these files (security by obscurity with random namings, disallow index, etc which is good enough. Critical docs are served via PHP to control access more)
Just wondering, going forward, what others do or have done in this area to keep PN, modules and future upgrades happy.
Seems to me there should be a /content folder in the PN root, with sub-folders for the modules that want to put it there. This keeps it free of the PN folder tree, yet makes it consistent and easy for users to identify what it is.
Module developers could specify the filetypes allowed, and postnuke generates a htaccess similar to the one in the modules directory, only allowing those types, thus keeping it secure still to some extent.
Further down the road, a generic uploader to hook into would be great - uploads according to the schema supplied by the module, returns the location to the module, module then saves the location and finishes off its routine to save the data.
Thoughts? Should I suggest that as a feature request for future postnuke core inclusion?
I'm going to start working on something to accomplish this, but would like to do so towards a common standard rather than ad-hoc. I also need to create it so users can upload and save a few files (with limits) and provide temporary password access/link to them. So, a users extension (rather than module only) is planned, too.
With the state of current uploading modules (downloads 2.1, updownload, etc), do any of them allow hooks or API calls from other modules? Or, follow some standard for file locations?
Thanks to anyone with some experience using these other modules.
NCM
UHEweb
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
