This project is read-only.

Orchard.Media FileAllowed

Topics: Troubleshooting
Sep 3, 2014 at 6:21 PM
I'm resurrecting a module that was originally written for Orchard 1.4 and the old Orchard.Media module. I have everything working with the new Orchard.MediaLibrary module, except for one service call that I can't seem to find implemented.

The module calls "FileAllowed(image)" where image is an HttpPostedFileBase.

The MediaLibraryService doesn't seem to implement anything like this now. Does this call reside somewhere else now or has it been completely removed from Media?

Thanks =)
Sep 3, 2014 at 10:54 PM
Removed, we don't filter filenames anymore, you can assume it's always true
Marked as answer by psenechal on 9/3/2014 at 3:00 PM
Sep 3, 2014 at 11:00 PM
Thanks Sebastien...I removed the code.