Allow asset folder to be outside of WEB_ROOT

If asset folder is outside of WEB_ROOT i.e. WEB_ROOT../assets/ then we need to return the realpath otherwise files are uploaded to the wrong directory