ma2thieu/wbxFileBundle — pull request #1 by colinfrei (2012-04-18 15:41:56+00:00)
Title: Allow any File class, so local files can be imported as well

I handle files that are uploaded from a form using this bundle, but I also need to be able to add a bunch of files manually from an import script.

Right now I need to hack that together, since the preUpload() method in the entity requires $this->file to be an instance of UploadedFile.

This change allows any instance of File (of which UploadedFile is a child) to be set as $this->file, allowing the import of local files.