Replaced hardcoded paths to the uploads directory with a constant.