net-art-and-cultures / data-bodies

GNU General Public License v3.0
1 stars 6 forks source link

sharing data(or data portrait) to server #10

Closed harae37 closed 4 years ago

jwham92 commented 4 years ago

Hi @Steve-luo , when will you pull request JSON file?

jluo98 commented 4 years ago

what json file

jwham92 commented 4 years ago

oh sorry maybe I said wrong the one you are working on, the visualization data that goes into the popup window.

In popup.js

saveButton.addEventListener('click', () => { const data = new FormData() data.append('image', The one you are working on) fetch('http://localhost:8000/api/image-upload', { method: 'POST', body: data }) })

jluo98 commented 4 years ago

I'm working on it right now :)

jwham92 commented 4 years ago

Okay! Thanks for letting me know. I'll working on it after you upload the code.