Filtering the gallery upload relative path