Method for getting the correct filename from request.META