latest
This commit is contained in:
parent
f2a88b959a
commit
1571ab4677
|
@ -17,7 +17,8 @@ function MyDropzone() {
|
||||||
const onDrop = useCallback(acceptedFiles => {
|
const onDrop = useCallback(acceptedFiles => {
|
||||||
const file = R.head(acceptedFiles)
|
const file = R.head(acceptedFiles)
|
||||||
const fd = new FormData()
|
const fd = new FormData()
|
||||||
const fileName = R.compose(splitFilename, pName(file as any))
|
const fileName = R.compose(splitFilename, pName)(file)
|
||||||
|
console.log("filename", fileName)
|
||||||
fd.append("file", file)
|
fd.append("file", file)
|
||||||
if (window) {
|
if (window) {
|
||||||
const streamSaver = require("streamsaver")
|
const streamSaver = require("streamsaver")
|
||||||
|
|
Reference in New Issue