When importing documents, the 'File' field was filled with the file path instead of the file name

When importing documents, the File field was wrongly filled with the full file path instead of simply the file name.