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

Make fileInput trigger shiny:inputchanged. #1541

Merged
merged 3 commits into from Jan 31, 2017
Merged

Make fileInput trigger shiny:inputchanged. #1541

merged 3 commits into from Jan 31, 2017

Conversation

wch
Copy link
Collaborator

@wch wch commented Jan 17, 2017

Closes #1511. When a fileInput changes, this fires the shiny:inputchanged event.

The format of the data on the client is as close as possible to the format on the server. On the client, it is an array of objects:

[{
  name: "rock.csv",
  size: 1530,
  type: "text/csv"
}]

And on the server, it's a data frame (datapath isn't available on the client):

name      size      type                                    datapath
rock.csv  1530  text/csv  /tmp/RtmpkEIccc/0df954afaddbc88008601d57/0

@wch wch merged commit 408f66e into master Jan 31, 2017
@wch wch deleted the wch/file-input-event branch January 31, 2017 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

shiny:inputchanged event not fired for fileInput
1 participant