• Good, but suffers from some file-type limitations imposed by WordPress. For example you can’t upload .xslx spreadsheets. To avoid the limitations add to wp-config.php

    /* allow unfiltered uploads */
    define( 'ALLOW_UNFILTERED_UPLOADS', true );

    Then, once your Upload Dialog is open, turn the file-type selector from “allowed types only” to “all types“, otherwise .xslx will not be shown.

    ———-

    Then, the folders created are not really private. If you want to hide them to public, you should secure your server otherwise, outside WordPress. Consider using .htaccess:

    RewriteCond %{REQUEST_URI} upf-docs [OR]
    RewriteCond %{REQUEST_URI} many-more-folders [OR]
    RewriteCond %{REQUEST_FILENAME} ^.(pdf|doc|zip|xslx|odt)$
    RewriteCond %{HTTP_COOKIE} !^.wordpress_logged_in.$ [NC]
    RewriteRule (redirect to your login page)

    • This topic was modified 1 year, 2 months ago by marisol3007.
  • The topic ‘Exactly what looking for’ is closed to new replies.