Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Mr. Goode

    (@mcgoode)

    Also I am doing this with just two pictures, each being ~15mb.

    Plugin Author M.Sc. Denis Golovin

    (@denis_golovin)

    Hi mcgoode,

    thank you for the detailed description.
    Photography Management works only with Apache out of the box. On other server systems you have to do some adjustments:

    Every GET request which targets a file in:
    /wp-content/uploads/photography_management/TARGETNAME?client=X&project=Y&attach=Z
    should be redirected as follows:
    wp-content/plugins/photography-management/protect_images/protect.php?f=TARGETNAME&client=X&project=Y&attach=Z

    You can find a .htaccess file in the uploads/photography_management which was generated dynamically. Maybe this also helps you to configure your IIS server.
    Please not that this redirection is very important, since the whole security-logic is implemented in protect.php. (Most other plugins do not protect the images at all, they just hide the frontend behind a login).

    I would love to hear if you’ve managed to configure your server and if so: how? This can be useful for many other people ??

    Regards,

    Denis

    Thread Starter Mr. Goode

    (@mcgoode)

    Thanks for the purposed solution, I will get back once I have implemented it successfully or report any issues! I also hope this helps others that operate in Windows environments.

    Thread Starter Mr. Goode

    (@mcgoode)

    Ah, Seems that during the install the htaccess file was not created in the uploads/photography_management directory. I used the apache_htaccess file in the plugin’s protect_images folder to create the rules, but I was not successful.

    I will have to research this a bit since I have not messed with the URL rewrite module in IIS much.

    Thread Starter Mr. Goode

    (@mcgoode)

    Ok so when doing a direct GET request using the button’s link I get a page not found. It is getting the images one by one though so redirecting is working. Which is weird, since I see your code is looking for the zip-all in f to know if it needs to create the zip file.

    I am determined to get this working on IIS!

    Thread Starter Mr. Goode

    (@mcgoode)

    In a side note, could you organize the uploads of the photography_management in to a folder structure for easier use? Each client has a directory and then projects under the client then hold the pictures?

    Thread Starter Mr. Goode

    (@mcgoode)

    I GOT IT!!!!

    Issue: IIS was looking for a file name zip-all, which does not exist.

    Fix: Create a file named “zip-all”, no extension/quotes, in the C:\inetpub\wwwroot\<your site>\wp-content\uploads\photography_management directory.

    Also make sure that same directory has the web.config file to keep your images safe. If its not there here is the fix for that as well.

    Download this and place the web.config into the directory stated. This zip also contains the zip-all file that was previously mentioned.

    I hope this helps fellow windows server users.

    Plugin Author M.Sc. Denis Golovin

    (@denis_golovin)

    THANK YOU!

    this will certainly help other users!

    Thread Starter Mr. Goode

    (@mcgoode)

    I forgot to state that the web.config file is right from my server SO be sure to change the url.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Download all Fail’ is closed to new replies.