API Ensure that the "attach from cms" dialog respects the saved folder

Depends on https://github.com/silverstripe/silverstripe-framework/pull/3312