=== Jeet Sanwal Missing Upload Files Review ===
Contributors: jeetsanwal
Tags: media, uploads, files, audit
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Find missing or unreadable registered primary local upload files, one small batch at a time. No deleting, restoring or surprise requests.

== Description ==

The Media Library can remember a filename long after its local file has left the building. Jeet Sanwal Missing Upload Files Review checks registered primary attachment files against your local uploads directory, reporting readable, missing, unreadable, outside-boundary and unverified results. It leaves every attachment and file exactly where it found them.

It checks the file registered in the primary attachment-file field. WordPress scaled-image originals, thumbnail derivatives, original-image backups, other backups, unregistered files and remote delivery are outside scope. It does not open file contents, list directories, calculate hashes or scan your server.

Features:

* Review registered primary local attachment files
* Distinguish readable, missing and unreadable local files
* Outside-boundary and remote/unverified outcomes stay explicit
* Only safe relative upload paths are displayed; absolute server paths stay hidden
* 20 candidate attachment IDs per request with Next/Previous navigation
* Exact attachment ID review and batch-local title/state filters
* Nonce-protected CSV of the current permitted review
* No file contents, remote probes, attachment edits, deletions or restoration

Scope and limits:

* Registered primary attachment file only; no derivatives, scaled-image originals, backups or unregistered files
* A missing local copy can be intentional when a media-offload/CDN service is used
* A readable local file is not proof that a public URL, browser rendering or remote delivery works
* Remote/stream registrations and unsafe or unmappable paths remain unverified
* No automatic repair, delete, restore, file listing, hashes or HTTP probes
* Title and state filters apply only inside the current 20 candidate attachment IDs
* Up to 1,000 candidate batches, with exact attachment ID review available afterwards
* CSV is regenerated and can differ if registrations or filesystem state change

With optional installation reports off, this plugin creates no settings, stored reports, messages, external requests or automatic content/product/file changes. It has no frontend assets, ads, signup, tracking, paid features or public credit. CSV is generated again from the current report and may change if underlying saved data or files change.

Author: Jeet Sanwal
Author website: https://jeetsanwal.in
Plugin page: https://jeetsanwal.in/tools/jeet-missing-upload-files-review

== Installation ==

1. Upload the individual plugin ZIP via Plugins → Add New → Upload Plugin, then activate it.
2. Open Tools → Missing upload files.
3. Review a small batch or one ID. Continue with Next even if a filtered batch is empty.
4. Use the native editor for any changes you choose. The report itself changes nothing.

Requirements:

* WordPress 6.5 or newer
* PHP 7.4 or newer
* Administrator settings access and edit permission for each reviewed attachment
* A readable local uploads directory for local-file verification

Updates: install the newer individual plugin ZIP manually, replacing the existing version. No background updater or license service is included.
Deactivation/removal: no plugin data cleanup is needed because no settings or reports are stored. Removing the plugin does not remove any media, files or products.

== Frequently Asked Questions ==

= Does it repair or delete files? =

No. It only reviews the registered primary local path. It never deletes, restores, edits, moves or creates files or attachments.

= Are thumbnails and original-image backups included? =

No. The scope is the registered primary attachment file. Thumbnail derivatives, scaled-image original backups, other backups and unregistered files are not inspected.

= Why might an offloaded image appear missing locally? =

A media-offload service may intentionally remove the local copy. Missing means that this registered local file was not found inside the verified uploads boundary; it does not prove that the website image is broken.

= Are remote URLs or CDN files tested? =

With optional installation reports off, no. Remote and stream registrations are unverified. No HTTP requests or remote delivery tests are made. A local readable result does not certify a public URL.

= Can someone see my server filesystem paths? =

The administrator report displays only safely mapped relative upload paths. Outside, invalid or unmappable registrations use a generic message instead of displaying an absolute server path.

= Why is a filter empty when Next is available? =

Title and state filters apply after access checks inside the current 20 candidate IDs. Later batches may contain matches. Continue with Next or inspect a particular attachment ID.

= Does this leave saved reports or settings behind? =

No. Reports are calculated on request and no plugin settings or reports are stored. CSV is calculated again at export time, so changed files or registrations can change its results.

== Updating an existing installation ==

Download this plugin's individual ZIP from https://jeetsanwal.in/tools/jeet-missing-upload-files-review . Make a normal site backup and try the update on staging first. In WordPress, use Plugins > Add New > Upload Plugin and choose Replace current with uploaded when WordPress detects the existing installation. Keep the same plugin folder; do not uninstall/delete the plugin as an update step. Confirm the displayed version is 1.0.4, then reopen the plugin's normal screen and check one representative workflow described above. Clear relevant page caches if public output remains stale.

Updates are installed manually; a matching Update URI prevents unrelated directory plugins from replacing this package, but does not provide an update service. If replacement fails, check hosting upload limits and write permissions before retrying. To roll back, replace the plugin files with your saved previous ZIP; file replacement alone does not restore database records or deleted files. Use your site backup when data restoration is needed. Read this plugin's retention notes before deliberately uninstalling it.

Author and support: Jeet Sanwal — https://jeetsanwal.in/contact

== Optional installation reports ==

Installation reports are optional and OFF by default. Installing, activating, or using this product does not submit a report. Administrators can choose consent separately for each product under Settings > Jeet Sanwal Reports. All product features remain available with reporting off.

After explicit consent, the client sends the website URL, a random installation ID, product/WordPress/PHP versions, reported state, and an observed activation timestamp when available to https://jeetsanwal.in/api/v1/plugin-reports. While that product is active and consent remains enabled, a daily WordPress cron check-in can update its last-known status. WP-Cron depends on site traffic and hosting; it is not a continuous monitor.

Pause stops future reports without deleting records already shared. Forget requests deletion of the remote installation entry and history, retrying deletion if delivery fails. Records automatically expire after 90 days without a check-in. The plugin does not send page content, files, database exports, administrator email addresses, or raw IP addresses. Server rate limiting keeps a keyed IP hash for up to 24 hours; ordinary hosting access logs are governed separately by the privacy policy.

Review the fields and consent before enabling reporting. Read https://jeetsanwal.in/privacy for the reporting endpoint, retention, and deletion details. Reporting does not authorize remote control, automatic updates, or access to the website.

== Changelog ==

= 1.0.4 =
* Updated the product display name to Jeet Sanwal Missing Upload Files Review and retained the Jeet Sanwal author website.
* Added voluntary installation/status reports with per-product consent OFF by default, pause/forget controls, and documented fields and retention.
* Preserved existing identifiers, stored data, permissions, and earlier release history.


= 1.0.3 =
* Hardened CSV text-cell protection for formula-like values after Unicode spacing/format prefixes and invalid UTF-8 input.


= 1.0.2 =
* Added a complete US English installation and update guide; kept documented permissions, limits and manual rollback steps.


= 1.0.1 =
* Clarified the manual replacement, verification and rollback workflow, with direct author support details.
* Rechecked package metadata, source/archive consistency and existing isolated regressions.


= 1.0.0 =
* Initial release with fixed candidate batches, per-item permissions and read-only CSV reports.

== Upgrade Notice ==

= 1.0.0 =
Initial release. Review findings manually within the documented scope.
