attr-accept icon indicating copy to clipboard operation
attr-accept copied to clipboard

Certain file types are not allowed

Open rxmarbles opened this issue 7 years ago • 5 comments

Per this issue in react-dropzone It seems the check on file types has been changed in browser support as it makes those that have a filetype that includes a . to a blank string. The example here is a .stl file. This is an example file from a basic input file type tag

File(7138484) {name: "Apollo_11.stl", lastModified: 1440523936000, lastModifiedDate: Tue Aug 25 2015 10:32:16 GMT-0700 (Mountain Standard Time), webkitRelativePath: "", size: 7138484, …}
lastModified
:
1440523936000
lastModifiedDate
:
Tue Aug 25 2015 10:32:16 GMT-0700 (Mountain Standard Time) {}
name
:
"Apollo_11.stl"
size
:
7138484
type
:
"model/x.stl-binary"
webkitRelativePath
:
""
__proto__
:
File

rxmarbles avatar Sep 03 '18 20:09 rxmarbles

Is this actionable somehow? Can you come up with a fix for it?

okonet avatar Sep 05 '18 18:09 okonet

Not entirely sure @okonet. I'm still debugging in this repo to see where this occurs

rxmarbles avatar Sep 05 '18 18:09 rxmarbles

@rxmarbles Have you come up with a solution?

squancy avatar Jun 26 '20 19:06 squancy

i'm facing this problem. How can i solve this issue?

LEEILLJIN avatar Mar 04 '22 14:03 LEEILLJIN