doc.go 1.0 KB

123456789101112131415161718
  1. // megauploader is a very opinionated uploader. It is focused on very simple authorization schemes and the
  2. // idea of multiple "shares". A share is basically a directory where users can put things. Each share can list
  3. // authorized users (wildcards supported).
  4. //
  5. // There's also some support for "dynamic" share. MegaUploader has a native concept of user "home": a
  6. // directory that is dynamically calculated for each user. There are both global settings and possibility of
  7. // overriding dynamic calculation
  8. //
  9. // Upload is supported, while view is not. MegaUploader relies on a separate "file browse" URL.
  10. //
  11. // Security
  12. //
  13. // Absolutely do *not* expose it publicly; in fact, for authentication it relies on a proxy that will
  14. // set the X-Forwarded-User accordingly. This is nice if you want to reuse your webserver authentication
  15. // modules without rewriting them for this application
  16. // Requests that do not have X-Forwarded-User are an error; configure your webserver properly to avoid that a
  17. // malicious user can forge that header!
  18. package megauploader