Answer
The magnitude of the static frictional force acts upwards.
Work Step by Step
In order for the crate to remain stationary on the wall, there needs to be an equal force acting opposite to the force of gravity on the crate. The friction between the wall and the crate acts as this opposite force to gravity.