Security: File path accessibility check.

File path access check is added during update/rename/delete of file, to avoid working with files that are not within uploadDir configured.