#6629 closed defect (bug) (fixed)
HTML uploads fail
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.5.1 | Priority: | normal |
Severity: | normal | Version: | 2.5 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
(In [7706]) Legacy uploader fix from tellyworth. fixes #6629 for 2.5