Skip to content

qatoco/draft-js-image-insert-demo

Repository files navigation

draft-js-image-insert-demo

online demo

https://zen-albattani-27c09c.netlify.com/

  • file upload version does not work

setup

# 1. install and run demo page
yarn && yarn start

# 2. run file upload/donwload sever locally
docker run --rm -p 25478:25478 --name demoserver -v $HOME/tmp:/var/root mayth/simple-upload-server app -token token /var/root
# > time="2019-11-26T16:25:31Z" level=info msg="starting up simple-upload-server"
# > time="2019-11-26T16:25:31Z" level=info msg="start listening" ip=0.0.0.0 port=25478 root=/var/root token=f9403fc5f537b4ab332d upload_limit=5242880

# 3. upload test
curl --form file=@`pwd`/demo1.gif 'http://localhost:25478/upload?token=token'
# > {"ok":true,"path":"/files/demo1.gif"}

# 4. quit google chrome and re-run with cors-disabled
open http://localhost:3000/ -a "/Applications/Google Chrome.app" --args --disable-web-security --user-data-dir

demo

mutiple file with file uploads

img

mutiple file with blob ( no upload)

img

resize iamges

img

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy