Audio, video or file input
See original GitHub issueHi !
I was wondering if you intend to do an audio, video, or a more generic file type. Right now, images are supported as ObjectURL
, but I wonder why wouldn’t we want a similar component using react-dropzone
as you currently do but that supports other types of files, most likely sending back a File
object.
I can understand custom plugins could be covering the use case, but it doesn’t seem you are providing a FileInput
primitive within the { Components } from leva/plugin
namespace neither, so it’s pretty hard to build it while still matching Leva styles (and even less if you modified the default Leva theme).
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top Results From Across the Web
Video files showing up in file input accept=audio attribute
Yes. If we select all files from the dropdown, it will show all files. But my doubt is why its showing 3gp if...
Read more ><input type="file"> - HTML: HyperText Markup Language | MDN
A valid MIME type string, with no extensions. The string audio/* meaning "any audio file". The string video/* meaning "any video file". The ......
Read more >List of all Input Formats - CaptionSync Support Center
List of all Input Formats ;.AIFF, Audio Interchange File Format audio ;.ASF, Windows Media ASF container video ;.AVI, Audio Visual Interleave ...
Read more >HTML5 - Audio & Video
HTML5 supports <audio> tag which is used to embed sound content in an HTML or XHTML document as follows. ... The current HTML5...
Read more >Upload & Display Picture, Audio, and Video on the Web Using ...
After reading this article, you'll understand how to set up a form to allow users to upload an image, audio or video using...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
To speed things up, I hacked together a patch using https://github.com/ds300/patch-package that removes the preview and accepts all type of files returning a
File
value instead.I will eventually work on a proper solution to contribute to the repo, but this is an escape patch in case you just need whatever generic file as I do.
The patch
Hey @TiagoCavalcante , in case you were asking about updates on my side, I’m using leva on a project that is no longer a priority for me. Feel free to use my patch above or contribute yourself 👍🏻