diff --git a/src/components/FileSelector.js b/src/components/FileSelector.js index eeba467..df4eb62 100644 --- a/src/components/FileSelector.js +++ b/src/components/FileSelector.js @@ -4,7 +4,7 @@ export default function ({ emitName, emitURL }) { const fileInputHandler = ({ target }) => { const file = target.files[0] emitName(file.name) - emitURL(URL.createObjectURL(file)) + emitURL(`${URL.createObjectURL(file)}#${file.name}`) target.value = null }