kgierke / formkit-inputs

Collection of inputs for FormKit.
https://kgierke.github.io/formkit-inputs/
MIT License
13 stars 1 forks source link

Info output doesn't work on 'single' type uploads #12

Open oldskool73 opened 2 years ago

oldskool73 commented 2 years ago

Hi,

When NOT using multiple="true" (i.e. single image uploads only), the information about the upload (name, upload state) does not work correctly:

I've had a quick poke around and it seems that the file value in the schema for the single version that this output depends on appears to be 'undefined' (which looks like it's related to the previous PR where the single and multiple were separated).

kgierke commented 2 years ago

Ah good catch, since I don't store the object in the value anymore the necessary fields don't exist. I'll have a look at it over the weekend.