All Projects → filestack → Filestack React

filestack / Filestack React

Licence: mit
Official React component for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Filestack React

Okhttps
如艺术一般优雅,像 1、2、3 一样简单,前后端通用,轻量却强大的 HTTP 客户端(同时支持 WebSocket 与 Stomp 协议)
Stars: ✭ 92 (-29.77%)
Mutual labels:  upload
S3 Uploader
🍎 macOS Electron+React App for uploading files to S3 directly from Status Bar
Stars: ✭ 119 (-9.16%)
Mutual labels:  upload
Apollo upload server Ruby
Stars: ✭ 124 (-5.34%)
Mutual labels:  upload
Vue Core Image Upload
a vue plugin for image to crop and upload
Stars: ✭ 1,321 (+908.4%)
Mutual labels:  upload
Serverless Sharp
Serverless image optimizer for S3, Lambda, and Cloudfront
Stars: ✭ 102 (-22.14%)
Mutual labels:  transformations
Hm
Idiomatic Ruby hash transformations
Stars: ✭ 121 (-7.63%)
Mutual labels:  transformations
Budgie Screenshot Applet
Take a screenshot of your desktop, a window or region; save to disk and upload. Made with ❤️️ for Budgie Desktop.
Stars: ✭ 89 (-32.06%)
Mutual labels:  upload
Cos Wx Upload File
微信小程序上传文件到腾讯云v5;Wechat mini program upload file to tencent cos v5
Stars: ✭ 129 (-1.53%)
Mutual labels:  upload
Go Tus
A pure Go client for the tus resumable upload protocol
Stars: ✭ 105 (-19.85%)
Mutual labels:  upload
Jquery Filepond
🔌 A handy FilePond wrapper for jQuery
Stars: ✭ 124 (-5.34%)
Mutual labels:  upload
Bintray Publish
Super easy way to publish your Android and Java artifacts to bintray.
Stars: ✭ 97 (-25.95%)
Mutual labels:  upload
Laravel Filemanager Example 5.3
Demo integration for laravel-filemanager (https://github.com/UniSharp/laravel-filemanager).
Stars: ✭ 100 (-23.66%)
Mutual labels:  upload
Cakephp Proffer
An upload plugin for CakePHP 3
Stars: ✭ 121 (-7.63%)
Mutual labels:  upload
Angular File Uploader
Angular file uploader is an Angular 2/4/5/6/7/8/9/10 + file uploader module with Real-Time Progress Bar, Responsive design, Angular Universal Compatibility, localization and multiple themes which includes Drag and Drop and much more.
Stars: ✭ 92 (-29.77%)
Mutual labels:  upload
Curldrop
⏫ web app for for easy file uploads via curl
Stars: ✭ 125 (-4.58%)
Mutual labels:  upload
Ffimageloading
Image loading, caching & transforming library for Xamarin and Windows
Stars: ✭ 1,288 (+883.21%)
Mutual labels:  transformations
Fcup
jquery大文件分片上传插件-fcup.js
Stars: ✭ 120 (-8.4%)
Mutual labels:  upload
Easyreact
Are you confused by the functors, applicatives, and monads in RxSwift and ReactiveCocoa? It doesn't matter, the concepts are so complicated that not many developers actually use them in normal projects. Is there an easy-to-use way to use reactive programming? EasyReact is born for this reason.
Stars: ✭ 1,616 (+1133.59%)
Mutual labels:  transformations
React Files
A file input (dropzone) management component for React
Stars: ✭ 126 (-3.82%)
Mutual labels:  upload
Laravel Filemanager
Media gallery with CKEditor, TinyMCE and Summernote support. Built on Laravel file system.
Stars: ✭ 1,688 (+1188.55%)
Mutual labels:  upload

filestack-react

React component which allow you to easily integrate powerful filestack-api into your app.



Table of Contents

Overview

filestack-react is a wrapper on filestack-js sdk which allow you to integrate with Filestack service in just a few lines of code. Almost all you can do with filestack-js you can do with this component.

Usage

Install it through NPM

npm install filestack-react

then just insert into your app

import { PickerOverlay } from 'filestack-react';

<PickerOverlay
  apikey={YOUR_API_KEY}
  onSuccess={(res) => console.log(res)}
/>

Props

Key Type Required Default Description
apikey String true Filestack api key
clientOptions Object false https://filestack.github.io/filestack-js/interfaces/clientoptions.html
pickerOptions Object false https://filestack.github.io/filestack-js/interfaces/pickeroptions.html
onSuccess Function false result => console.log(result) A function to be called after successful completed action
onError Function false error => console.error(error) A function to be called when error occurs

Examples

Render basic Overlay Picker

<PickerOverlay apikey='YOUR_APIKEY'/>

Render basic Inline Picker

<PickerInline apikey='YOUR_APIKEY'/>

Render basic Drop Pane Picker

<PickerDropPane apikey='YOUR_APIKEY'/>

Show picker directly and embed it inside specific container

<PickerInline apikey='YOUR_APIKEY'><div className="your-container"></div></PickerInline>

filestack-js Client

If you need to use Client just try

import { client } from 'filestack-react';

SSR

If you need to use filestack-react with SSR project or site generators like Gatsby check some workarounds in this issues
issue57
issue65

Migration from 3.x.x and 4.x.x

3.x.x 4.0.0 Comment
apikey apikey
actionOptions pickerOptions We want to be consistent with other filestack libs
clientOptions clientOptions
onSuccess onSuccess
onError onError
N/A children Children prop will be used now in case you'll want to use specific container
action N/A Default picker action will be 'pick' always
file N/A Removed
source N/A Removed
customRender N/A Removed, from now on clients will be responsible for rendering
componentDisplayMode N/A Removed, from now on clients will be responsible for rendering

Migration from 1.x.x and 2.x.x

One of the changes introduced in the new version are rethinked props that the component accepts, so that the use of the component is as straightforward as possible. Below you will find information about what happened to each of the options available in 2.x.x :

2.x.x 3.0.0 Comment
apikey apikey
mode action
options actionOptions We want to emphasize that this option is associated with 'action'
preload N/A Now, component is at default preloading necessary js assets, styles, images
file file
onSuccess onSuccess
onError onError
options.handle source Handle or url used by specific action is now stored in separate prop
options.url source Handle or url used by specific action is now stored in separate prop
security clientOptions.security Options used to initialize filestack client are now grouped in ‘clientOptions’
buttonText componentDisplayMode.customText Use componentDisplayMode option (see examples)
buttonClass componentDisplayMode.customClass Use componentDisplayMode option (see examples)
cname clientOptions.cname Options used to initialize filestack client are now grouped in ‘clientOptions’
sessionCache clientOptions.sessionCache Options used to initialize filestack client are now grouped in ‘clientOptions’
render customRender
children N/A Use customRender instead

Live demo

Check demo at codepen https://codepen.io/Filestack/pen/KEpVdR - needs to be updated for 4.0 version

Development

All components are located inside src/picker/

After you add some changes just type

npm run build

Be sure that your change doesn't break existing tests and are compatible with linter

npm run test

Documentation

You can find info about available options for actions (Client class methods) in https://filestack.github.io/filestack-js/

Contribution

Any your contributions or ideas are more than welcome. Please consider that we follow the conventional commits specification to ensure consistent commit messages and changelog formatting.

Future

Current ideas:

  • Better support for SSR, static site generator and isomorphic apps
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].