Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FileInput widget #249

Closed
liulysk opened this issue Oct 8, 2023 · 5 comments
Closed

Add FileInput widget #249

liulysk opened this issue Oct 8, 2023 · 5 comments
Labels
feature-request New feature or request that needs to be turned into Epic/Story details size:M - 3 Sizing estimation point widget This issue details a new widget request

Comments

@liulysk
Copy link

liulysk commented Oct 8, 2023

Description

It would be nice to have widget which would allow to Drag and Drop JSON files.
Vuetify: https://vuetifyjs.com/en/components/file-inputs/

This msg.payload would return parsed JSON Object and msg.path would return file location in user file system msg.name - name of file
Non JSON files would return raw string.

Properties

  • Label

Events

  • on-action: this widget would need to send a message back to Node-RED when it's action is uploaded, e.g. button clicked

Controls

  • enabled: this widget can be enabled/disabled
  • visible: this widget can be hidden

Existing Examples

https://vuetifyjs.com/en/components/file-inputs/

Have you provided an initial effort estimate for this issue?

I am no FlowFuse team member

@liulysk liulysk added feature-request New feature or request that needs to be turned into Epic/Story details needs-triage Needs looking at to decide what to do widget This issue details a new widget request labels Oct 8, 2023
@joepavitt
Copy link
Collaborator

Thanks for the detailed feature request. We do also have #44 which is similar, just recording for reference.

The complexity with this one is that Node-RED doesn't always have access to a file system (e.g. when running Node-RED in a Cloud environment), so we'd need someway to (a) know that and (b) have a backup option, or communicate accordingly of we know access isn't possible

@colinl
Copy link
Contributor

colinl commented Oct 9, 2023

Is this for uploading files from the machine running the browser, or reading files from the machine running node red?

@joepavitt
Copy link
Collaborator

My interpretation would be the upload of files from browser device given that NR already has the "file in" node for reading files from the Node-RED host machine?

@liulysk
Copy link
Author

liulysk commented Oct 9, 2023

My interpretation would be the upload of files from browser device given that NR already has the "file in" node for reading files from the Node-RED host machine?

Correct.

When it is mentioned, it would be ideal to access files from dashboard in machine that is running nodered - similar as in here: https://www.youtube.com/watch?v=3QgK4IAAqcQ

@joepavitt joepavitt added size:M - 3 Sizing estimation point and removed needs-triage Needs looking at to decide what to do labels Oct 10, 2023
@joepavitt
Copy link
Collaborator

Closed by #981

@github-project-automation github-project-automation bot moved this from Backlog to Done in Dashboard Backlog Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request that needs to be turned into Epic/Story details size:M - 3 Sizing estimation point widget This issue details a new widget request
Projects
Status: Done
Development

No branches or pull requests

3 participants