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

[Vue3] Watching control.type = 'file' omits url #14922

Open
Mootook opened this issue May 13, 2021 · 2 comments
Open

[Vue3] Watching control.type = 'file' omits url #14922

Mootook opened this issue May 13, 2021 · 2 comments

Comments

@Mootook
Copy link

Mootook commented May 13, 2021

Describe the bug
I am unable to capture the upload of a file in the storybook controls, so that I can convert it to a blob.
The component I'm developing is dependent on this interaction.
I'm able to get array of object urls so that I could fetch when needed but am unable, within the setup() of a story template, to read this anywhere. Currently trying by watching the args object passed through setup.

To Reproduce
I have created https://github.com/Mootook/sb-file-argtype with a README to showcase how to find the warning/error.

System
System:
OS: macOS 11.2.3
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Binaries:
Node: 12.20.1 - ~/.nvm/versions/node/v12.20.1/bin/node
Yarn: 2.4.1 - /usr/local/bin/yarn
npm: 7.11.1 - ~/.nvm/versions/node/v12.20.1/bin/npm
Browsers:
Chrome: 90.0.4430.212
Safari: 14.0.3
npmPackages:
@storybook/addon-actions: ^6.3.0-alpha.25 => 6.3.0-alpha.25
@storybook/addon-docs: ^6.3.0-alpha.25 => 6.3.0-alpha.25
@storybook/addon-essentials: ^6.3.0-alpha.25 => 6.3.0-alpha.25
@storybook/addon-links: ^6.3.0-alpha.25 => 6.3.0-alpha.25
@storybook/vue3: ^6.3.0-alpha.25 => 6.3.0-alpha.25

Additional context
I found this while attempting to uploading stl, ply files for a 3d model viewer for my application, but this happens no matter the file type that I've tried.

@ndelangen
Copy link
Member

Is this still an issue in 7.0 beta @Mootook ?

@Mootook
Copy link
Author

Mootook commented Jan 19, 2023

Is this still an issue in 7.0 beta @Mootook ?

I am not currently in a position to test where I was experiencing this. I will try and set it up again however and report back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants