fixed behaviour for uploading markdown entries as files