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

Filepond alternatives #324

Open
iquabius opened this issue Jun 19, 2020 · 0 comments
Open

Filepond alternatives #324

iquabius opened this issue Jun 19, 2020 · 0 comments

Comments

@iquabius
Copy link
Owner

Filepond is quite heavy. Pages using it (/admin/questao-criar & /admin/questao-editar) are ~275kB (from next build). And the API is very bad, probably because it was not originally built for React.

Total 42.3kB minified + gzipped

react-dropzone

5.6kB minified + gzipped

Simple React hook to create a HTML5-compliant drag'n'drop zone for files. --- https://github.com/react-dropzone/react-dropzone

React + FileReader API (no lib)

https://gist.github.com/hartzis/0b77920380736f98e4f9
Preview at: https://codepen.io/hartzis/pen/VvNGZP

This may work with react-dropzone. And also may be a good option to do file uploading through GraphQL.

Someone commented about integrating with react-awesome-slider (8.2kB). Another interesting slider is glider-js (2.7kB) + react-glider (3.4kB) = 6.1kB.

Uppy

This is very fancy, it supports several sources: Web can, Dropbox, Google Drive, etc. It supports resumable uploads, S3 uploads, and much more.

But it's quite big:

All of them bundle Preact which is about 10kB.

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

No branches or pull requests

1 participant