Hi @paukmentor
Thanks for reaching out. Please make sure your .htaccess file has the required code from the UPF plugin which ensures that the public access to a file is restricted. If it is missing, try deactivating and reactivating the plugin. If it is still not added, you should see a message in the UPF settings page that shows you the required code that needs to be added to .htaccess file, please copy and add it to the file.
Thanks.
Thread Starter
Pauk
(@paukmentor)
Hi @deepakkite , thanks for your support. However, deactivating/reactivating did nothing – and the settings page does not show a prompt about missing .htaccess code.
How can I check this manually? and what code needs to be added?
It should look like this:
# BEGIN User Private Files
# The directives (lines) between "BEGIN User Private Files" and "END User Private Files" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
RewriteRule ^wp-content/uploads/upf-docs/(.*)$ https://upf.test?file=$1 [QSA,L]
# END User Private Files
In the above example, https://upf.test is the website
Thread Starter
Pauk
(@paukmentor)
@deepakkite it turns out that I just needed to restart my litespeed server. Now it works!
Another quick question.
When using the shortcode: [upf_display] It’s adding the title “My files” and “Shared with me” together with a toggle “Group file type”. Is there a way to remove/hide this? It tried with some css code, but I did not succeed.
Thanks for the update. You can hide them with CSS only. Please make sure to flush the cache to see the css changes on your site.
Thread Starter
Pauk
(@paukmentor)
Hi @deepakkite
I tried hiding it using CSS:
div.upf_files_sec {
display: none !important;
}
However, this does not work (cache has been flushed).
Any idea to why?