p-v-o-s / infragram-js

A web application for producing NDVI and other composites from DIY multispectral cameras
http://infragram.org
GNU General Public License v2.0
25 stars 11 forks source link

SocketIO file upload + thumbnails generation #37

Closed pfoltyn closed 10 years ago

pfoltyn commented 10 years ago

Files are uploaded using Socket IO. Added thumbnails generation. Log is updated exclusively in dispatch.coffee. Fixed open in sandbox. Commodified download button behaviour across JS and GL.

jywarren commented 10 years ago

just trying to pull this and I'm seeing "socket.io/" not found etc but I don't see that you submoduled it. Also, the socket.io/socket.io.js file isn't in the socket.io repo (maybe it needs to be compiled?) so I wasn't sure i wanted to just submodule it in myself. How do you have it set up?

Sorry if I'm being a bit dense... i'd work on it a bit more but i have a meeting starting shortly.

jywarren commented 10 years ago

ah, it's server side. I ran npm install and i think it's working now...

hmm, not quite. I should troubleshoot on my local machine; your code is up at http://infragram.org:8001/ but upload doesn't seem to be working.

pfoltyn commented 10 years ago

Apologies for not stating that npm install is required. Thanks for putting this on test server.

It doesn't work because I'm an idiot... I left socket = io.connect("http://localhost:8001"); in the user side code...

jywarren commented 10 years ago

No problem! Can we use a relative path for that, like "/"?

On Thu, Jan 16, 2014 at 2:28 PM, pfoltyn notifications@github.com wrote:

Apologies for not stating that npm install is required. Thanks for putting this on test server.

It doesn't work because I'm an idiot... I left socket = io.connect(" http://localhost:8001"); in the user side code...

— Reply to this email directly or view it on GitHubhttps://github.com/Pioneer-Valley-Open-Science/infragram-js/pull/37#issuecomment-32520425 .

jywarren commented 10 years ago

Works!!

jywarren commented 10 years ago

I think we need a more convenient deletion system... some kind of password prompt for the time being. Just to get rid of broken images and such.