I tried to delete a remote media file and it errors because it fails the is_file() check in file_managed_delete().

CommentFileSizeAuthor
#1 1231688-file-delete-fails.patch6.32 KBDave Reid
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid’s picture

Assigned: Unassigned » Dave Reid
Status: Active » Needs review
FileSize
6.32 KB

Thanks to rfay's excellent stream wrapper example, I got the correct way to 'emulate' an is_file() = TRUE result. Also adding some tests, so I'd like to see how the testbot works with this.

Dave Reid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.