Dynamically Changing the Upload Path

Added a way to change the upload path dynamically in controller.