mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
Fix File.upload()
event (#3462)
* fix .upload event * changelog * cleanup
This commit is contained in:
parent
814e928f05
commit
318e90c0ed
@ -7,7 +7,8 @@ No changes to highlight.
|
||||
|
||||
## Bug Fixes:
|
||||
|
||||
Fixed issue with `gr.Request` object failing to handle dictionaries when nested keys couldn't be converted to variable names [#3454](https://github.com/gradio-app/gradio/issues/3454) by [@radames](https://github.com/radames) in [PR 3459](https://github.com/gradio-app/gradio/pull/3459)
|
||||
- Fixes the File.upload() event trigger which broke as part of the change in how we uploaded files by [@abidlabs](https://github.com/abidlabs) in [PR 3462](https://github.com/gradio-app/gradio/pull/3462)
|
||||
- Fixed issue with `gr.Request` object failing to handle dictionaries when nested keys couldn't be converted to variable names [#3454](https://github.com/gradio-app/gradio/issues/3454) by [@radames](https://github.com/radames) in [PR 3459](https://github.com/gradio-app/gradio/pull/3459)
|
||||
|
||||
## Documentation Changes:
|
||||
|
||||
|
@ -36,6 +36,7 @@
|
||||
const dispatch = createEventDispatcher<{
|
||||
change: undefined;
|
||||
error: string;
|
||||
upload: undefined;
|
||||
}>();
|
||||
|
||||
$: {
|
||||
@ -82,6 +83,7 @@
|
||||
_value = normalise_file(value, root, root_url);
|
||||
}
|
||||
dispatch("change");
|
||||
dispatch("upload");
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -113,7 +115,6 @@
|
||||
on:change={({ detail }) => (value = detail)}
|
||||
on:drag={({ detail }) => (dragging = detail)}
|
||||
on:clear
|
||||
on:upload
|
||||
on:select
|
||||
>
|
||||
<UploadText type="file" />
|
||||
|
Loading…
Reference in New Issue
Block a user