Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @erisal,

    Yes. Check this article: https://aamplugin.com/help/how-to-manage-wordpress-media-access

    Thank you,
    Vasyl

    Thread Starter erisal

    (@erisal)

    I have already applied this procedure but it does not prevent direct downloading of pdf files from the browser by directly entering their URL.

    Thread Starter erisal

    (@erisal)

    I think I understood the problem: your procedure works well but not in my case because when I upload a pdf file, a hook create a directory in wp-content / uploads and places the file into it. This allows me to organize the files. Is it possible to adapt the .htaccess code?

    • This reply was modified 6 years, 9 months ago by erisal.
    Plugin Author AAM Plugin

    (@vasyltech)

    Hi @erisal,

    Yes, it is possible and I’ve helped multiple clients with that. The best way to know what is missing for your site is to see how it is setup. You can contact me directly and we can chat either via email (support@aamplugin.com) or find me on Google Hangouts with the same email address.

    Thank you,
    Vasyl

    Plugin Author AAM Plugin

    (@vasyltech)

    Hi @erisal,

    Following up with your issue. Upon my investigation, you are using custom code to hook into the file uploading functionality that is managed by Formidable plugin. This corrupts the filepath to the physical file and stores incorrect value to the database.

    You should fix your hook to comply with the default WordPress standards. Only after that AAM will work properly.

    Thank you,
    Vasyl

    Thread Starter erisal

    (@erisal)

    After modifying the hook so that the url in the database is correct, it does not change anything: the READ function blocks the media files but the READ BY OTHER function has no effect. I also did a test by removing the hook but the problem remains.
    You can also see that using the “access_dashboard” capability to prevent users from accessing the dashboard has the effect of blocking the upload of files. This functionality managed by another plugin works very well.
    The “READ” and “READ BY OTHER” restrictions by role have no effect on the media.
    I have put at your disposal a space that allows to highlight these anomalies, to you to tell me if there is a solution to solve them?
    I invite all those who use this plugin, to let know that they use these basic functions without problem …

    @erisal

    Hi erisal,

    how did you manage to move uploaded files to dedicated subfolder (or to upload them directly in the subfolder)? I have a similar need for PDF files and I am using AAM too.

    Pls, if you don’t mind, answer to me directly in order not to clutter this forum:
    marzoccafabio AT gmail DOT com
    Thanks

    Fabio

    Thread Starter erisal

    (@erisal)

    I use Formidable Pro plugin for create my forms. An “Upload files” field allows users to upload their files. I use a hook to change the files storage directory.
    In your case, as you’re the only one to upload files, you can use the “WordPress Media Library Folders” plugin that will initialize your database so that you can see your files in the media library and in AAM.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Protect PDF files from the direct access’ is closed to new replies.