add media filepath to the upload process

file path is now depending of configuration in config file