added relative/absolute path so that uploaded files can be stored in the right place