• Resolved Aldo

    (@ab_lu)


    Hello

    We just installed the plugin and have to small issues:
    1. The provided protected URL contains the directory, where WP is installed and does not point to the root. So we have https://domain.com/wp/download/file/2374/ instead of https://domain.com/download/file/2374/ I edited then line 132 in pwpf-hooks.php and changed site_url() to home_url(). This return the correct working path.
    2. When I open the protected file in the media library, there is no preview image returned and when I open the image or file directly in the browser I get a 500 Error.

    Any idea, why this happens?

    Thanks
    Aldo

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author csorbamedia

    (@csorbamedia)

    Hi Aldo,

    For some reason, I don’t get any messages from the forum.
    Thanks for reaching out here.

    1. I will change it. @todo
    2. A. Correct there is no preview image and there is a reason for it because if there was a preview image and say you upload a very private PDF file there is still a little bit of information public because WordPress generates a screenshot from a PDF.
    B. When you access the file directly say example.com/wp-content/uploads/2020/04/myfile.pdf then this should not be possible. A 403 forbidden should show or any other error, at least you should not be able to download it. It is a different story with /download/file/someidhere/ it should be possible to download it, but only when logged in.

    If there are any other questions don’t hesitate to reach me out by sending an email to [email protected].

    Thank you.

    Stephan Csorba

    Plugin Author csorbamedia

    (@csorbamedia)

    Beste Aldo,

    In de laatste versie heb ik het aangepast.

    Stephan

    Thread Starter Aldo

    (@ab_lu)

    Hi Stephan

    Thanks for the feedback.
    As for B)
    You upload protected files in an own directory, so this thumbs could be uploaded and generated in the same protected directory, not? This way they would be protected and the admin could identify the uploads better.

    Aldo

    Plugin Author csorbamedia

    (@csorbamedia)

    Dear Aldo,

    It is on my list for next release.

    Stephan Csorba

    Plugin Author csorbamedia

    (@csorbamedia)

    Dear Aldo,

    In the latest update, I added a Media Library filter, you can now filter by Protect WordPress Uploads. I will look into the thumbnails.

    Stephan

    Thread Starter Aldo

    (@ab_lu)

    Hi Stephan

    Thanks!
    One more tiny thing ?? It would be great to have the Upload link in as child of the media menu item.

    Best,
    Aldo

    Plugin Author csorbamedia

    (@csorbamedia)

    Dear Aldo,

    Thanks for your last tiny thing comment :).
    I take it into consideration.

    Stephan

    Thread Starter Aldo

    (@ab_lu)

    Hi Stephan

    The problem is, when inserting a file in a post, the WP modal to browser media only shows thumbnails. There is no way to find an image. Maybe you could add default icon as WP does, then the filename becomes visible.

    Thanks!
    Aldo

    Plugin Author csorbamedia

    (@csorbamedia)

    Hi Aldo,

    It is on my list for next release.

    Stephan

    Plugin Author csorbamedia

    (@csorbamedia)

    Hi Aldo,

    It was a hard thing to do but the thumbnails are there in the latest release.

    Stephan

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Preview image not showed in protected media detail’ is closed to new replies.