Implemented file uploads funtionality