HTML uploads fail
|Reported by:||tellyworth||Owned by:||anonymous|
HTML uploads fail with the error "Specified file failed upload test." from the Add Image tab:
- Disable Flash
- Click 'Add Image'
- Browse, select an image file, Ok
- Click 'Upload'
- The file uploads but returns with "Specified file failed upload test."
Reason: media_handle_upload() gets called twice, from both media_upload_image() and media_upload_form_handler(). The first one succeeds, the second causes the error because the file has been moved.
Removing the block of code as per the enclosed patch seems to fix it. That code appears to be unused - at least I can't find anything that breaks as a result of removing it.