Changed the upload/edit script to use the base_dir path instead of rel path.