adrians5j / react-butterfiles Goto Github PK
View Code? Open in Web Editor NEW🦋 Component for building file fields - from basic file inputs to drag and drop image galleries.
Home Page: https://react-butterfiles.netlify.com
License: MIT License
🦋 Component for building file fields - from basic file inputs to drag and drop image galleries.
Home Page: https://react-butterfiles.netlify.com
License: MIT License
@doitadrian Is it possible to get files from input after upload?
document.getElementById('selectedFiles').files
Files array is empty. Is there another way?
https://github.com/doitadrian/react-butterfiles#props should have maxSize listed as a prop
incorrectly has maxFileSize
Pull request submitted
For example, Microsoft SharePoint has the following restrictions on the file name:
Information about the characters that you cannot use in file names:
Possible property name: filter
or regexFilter
React-butterfiles only accepts PDF format.
I have started using this library for images, but now I want to upload documents as well, and I am trying to upload the given formats
Is there any way to do it?
".doc",
".docx",
".htm",
".html",
".odt",
".pdf",
".xls",
".xlsx",
".ppt",
".pptx",
".txt"
It is necessary that when you hover the file over the entire File component, the entire area would be a drop zone with a similar design.
example
Drop zone is presented as in the example, but it does not work because it has zero height.
<div {...getDropZoneProps({className: "myDropZone"})}/>
Displaying the drop zone in full size is initially simple, but visually not beautiful, because takes up a lot of space. But if you make a hover effect, in which the entire zone of the File component becomes a drop zone - this is cool.
Passing the <input>
a grid item property via the getDropZoneProps should result in the <input>
being laid out upon the grid
Due to to the component's wrapping <div>
, the <input>
is not a direct child of a wrapper with the display: grid
property, and so is not placed on the grid.
<Files />
component within a wrapping <div>
with the css property of display: grid
and other grid related syntaxgrid-column: 1/2
See pull request
See pull request
I allow sending all files, for example, with the exception of executable ones.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.