There is no need for them to be all recorded in file_managed.

MediaYouTubeStreamWrapper::getLocalThumbnailPath() calls file_save_data() which by nature always creates managed file records. It should be using file_unmanaged_save_data().

CommentFileSizeAuthor
#1 file_unmanaged_save_data-1916650-1.patch723 bytesaaron

Comments

aaron’s picture

Status: Active » Needs review
StatusFileSize
new723 bytes

Here you go. This also appears to fix the issue at #1916416: Error after submitting a video .

aaron’s picture

Status: Needs review » Fixed

I have committed this patch. Thanks, Dave.

Status: Fixed » Closed (fixed)

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