copy file url or local file to sandboxed filesystem