#Relative Paths, consume_upload_entries, LiveView

2 messages · Page 1 of 1 (latest)

rapid swift
#

Hello again!

I have made a directory walking hook for drag and drops using LiveView and javascript, however, i cant seem to understand how i can fill out the relative path member in the object returned by consume_upload_entries in the javascript hook, how is this exposed normally, javascript side, as it works fine when i manually select the input but it doesnt work when i drag and drop, i do also have the phx-drop-target attribute set in my .heex file.

I thought this would be easy but i really cant find any documentation on it 😅

Im thankful for any help.

#

The marked member in the attached photo is what im talking about, its empty when doing drag and drop but not when manually clicking the input field, how is this filled out programatically, i just cant find any documentation on it for LiveView.