You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to pick a file (image, video), perform some operations on it, and then display it to the front-end. If I do the picking from the front-end, then I cannot get the file path.
The text was updated successfully, but these errors were encountered:
Either return the whole file via the binding (probably slow) or what I'd do is setup an asset handler to return the file and then after selection of the file emit an event to load it, which will trigger the assethandler to load it.
So:
Install asset handler to manage /fs/ paths
Create JS event handler which listens to "fileload" events and does a fetch on "/fs/"+filename
When you select a file, emit ("fileload", filename)
It's not ideal and I'd be cautious of opening your whole filesystem up so maybe configure your asset handler to process paths only in a certain sub directory
I want to pick a file (image, video), perform some operations on it, and then display it to the front-end. If I do the picking from the front-end, then I cannot get the file path.
The text was updated successfully, but these errors were encountered: