Easy Digital Downloads – Protect Images

plugin banner

Protects (compress) image files when uploaded as Download file attachment.

Author:WooNinjas (profile at wordpress.org)
WordPress version required:4.0
WordPress version tested:4.7.28
Plugin version:1.0.0
Added to WordPress repository:10-07-2017
Last updated:10-07-2017
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:
Total downloads:795
plugin download
Click to start download

Protects (compress) image files when uploaded as Download file attachment.

When you upload a image file through File Downloads section under Download Files metabox, it uploads the original image file as it is and archive it into .ZIP format.
Then the .ZIP file format is returned back to Media library, user select it and insert into the attachment field.

The original image file which was uploaded then be deleted from the filesystem after it’s archived into .ZIP which is default behavior.

Options

There are couple of options you can use to change it’s behavior. Navigate to Downloads – Settings – Extensions – Protect Images

  • Overwrite ZIP File
    Forces overwrite the ZIP file which already exist with the same name. If this is unchecked and the ZIP file exist (same name), it does not archive and an error is returned. Default: Unchecked

  • Prevent File Deletion
    Avoid deleting the image file after it is archived in ZIP. If image file is required for other use case. Image file will be listed on next refresh when you open Media library. Note: This creates two attachment posts, the one which is archived as ZIP and other is the original image file. Default: Unchecked


FAQ
ChangeLog