Where PPWR Dossier keeps your uploaded evidence
Supplier declarations, test reports and drawings are the core of a packaging dossier, so shops ask where the files go after upload. This page describes what the code of the free PPWR Dossier plugin, version 1.0.1, does. Where your WordPress database physically sits, who can reach it and how it is backed up depend on your hosting, not on the plugin.
Online version: https://sidecarsoft.com/blog/ppwr-evidence-storage/
Stored in your WordPress database
Link to sectionWhen you upload a file under Evidence files, the plugin reads it once and saves its content in your WordPress database as an option named after the file's SHA-256 checksum. It is not copied to the media library or to the uploads folder, so it has no public file URL.
- The content is stored Base64-encoded, which makes it about a third larger in the database than the original file.
- The option is created with autoload off, so it is not loaded on every page view.
- Identical files are stored once. A stored file is never overwritten; the packaging type keeps the file name, category, size and upload time.
- Accepted types: PDF, TXT, CSV, JPG, PNG, DOCX, XLSX, ODT and ODS. One file can be up to 10 MB or your server's upload limit, whichever is lower; up to 20 files per save and 100 per packaging type.
- The plugin makes no requests to outside servers, so it sends your evidence nowhere.
Who can download a file
Link to sectionEvidence files and dossier ZIPs are only handed out through WordPress admin requests, and every one of them runs the same two checks:
- The user must have the WooCommerce capability manage_woocommerce. In a standard WooCommerce install that is administrators and shop managers; other roles get “Forbidden” (HTTP 403).
- The link must carry a valid WordPress nonce for that exact file or revision. Download links are built on the PPWR dossiers screen; a link without a matching nonce is refused.
- Before sending, the plugin recomputes the SHA-256 checksum. A file that is missing or changed is not sent, and no ZIP is built from it.
- Files are sent as downloads, never shown in the browser, with no-cache headers.
- The dossier ZIP is assembled in the server's temporary folder, sent, then deleted.
Removing a file from a packaging type deletes its stored copy only when no packaging type and no frozen revision still uses it, so earlier revisions keep their evidence.
Deactivating and deleting the plugin
Link to sectionDeactivating PPWR Dossier deletes nothing. Deleting it removes two small housekeeping options; your packaging types, revisions, evidence files and settings stay in the database unless you opted in first.
- The opt-in is a checkbox under WooCommerce > PPWR dossiers > Settings: Permanently delete all packaging types, revisions, evidence files and settings when PPWR Dossier is deleted. It is off by default.
- With the box ticked, deleting the plugin removes every stored evidence file, every revision, the register and the settings.
- PPWR Dossier Pro always stops its daily reminder check when deleted. It removes its reminder settings only if you opted in to deleting all data, or if the free plugin's data is already gone.
- The plugin does not delete anything on a schedule: there is no retention timer. Keeping records for the required period is your job.
What depends on your hosting
Link to sectionThe plugin decides where in WordPress the files go and who may download them through WordPress. It does not control the following, and it does not encrypt, back up or replicate your evidence:
- Where the database server is located and who runs it.
- Who has direct access to the database, server or hosting account. Anyone with that access can read or change stored data outside the plugin.
- Whether and how often the database is backed up, and how long backups are kept. Deleting the plugin with the opt-in does not remove copies already in backups.
- Encryption of the database or of backups.
- Upload size limits: PHP's upload settings and your database's limit on a single entry can be lower than 10 MB. If storing fails, the plugin says the file could not be stored and keeps nothing.
- Which users hold the manage_woocommerce capability: role editors and other plugins can change that.
What to do
Link to section- Include the WordPress database in your backups and test a restore.
- Keep the downloaded dossier ZIPs and the signed declarations in your own records as well.
- Check which users can manage WooCommerce.
- Before deleting the plugin, decide on the settings checkbox. Leave it off if you might reinstall or still need the records.
- New here? Follow your first dossier, step by step.