thecodejack/svelte-file-dropzone

Property 'path' does not exist on type 'File'

Opened this issue · 0 comments

Hello boys.
When trying to use your widget, I have found out, that how you are handling File type, does not match the spec.

Currently:

  • Full Path of the uploaded file is stored in path parameter of File type
  • webkitRelativePath parameter is not used at all
  • Typescript is throwing an error that file.path does not exist on type File

Image

Expected:

  • Full path of the uploaded file is stored in webkitRelativePath parameter of File type