Wikia/app — pull request #2248 by kenkouot (2013-12-04 18:27:31+00:00)
Title: VE-646 Renaming a media item in the VE's Add Media dialog breaks the cart and the cart item

If the file is temporary, then setPage set's the page based on it's unique temporary file name rather that it's title.