Media & WXR Uploads: Inaccurate error reporting because move_uploaded_file() fails to return false.
|Reported by:||emhr||Owned by:||duck_|
Steps to reproduce:
Current month directory exists in uploads directory hierarchy but is not writable.
Case-1 Upload a new media item. Data stored in database but file is not uploaded.
Case-2 Upload a WXR import file using the WP importer plugin. Plugin reports it's fallback error message: "This does not appear to be a WXR file, missing/invalid WXR version number" even if the WXR file has a valid wxr version number. The import fails.
The uploader should return the following error, "The uploaded file could not be moved to"…path
Pass precise path to wp_tempnam() instead of default
Bug Since: #18206
Change History (11)
- Owner set to duck_
- Resolution set to fixed
- Status changed from new to closed