Hi guys,
thank you for this awesome library! I have a little issue, I'm not very skilled in js and I can't find a solution.
I have a rails app running on port 3452 (as described here) with Uppy up and running. Everything works like a charm when I upload files or take a photo from my webcam, it uploads correctly on my s3-bucket and I'm super happy. Now I want to extend, with uppy-server, for dropbox, drive & co.
As explained in the docs I copied uppy server, installed, set keys in env.sh (they are test keys, I'll change them lol)
export UPPYSERVER_SECRET="this_is_a_fucking_secret"
export UPPYSERVER_DOMAIN="localhost:3020"
export UPPYSERVER_DATADIR="/alagaesias_output"
both in uppy.js (in options variable) and in env.sh.
Now I try to gather a file from Dropbox from localhost:3452, it shows me all my files, I select a photo, it starts the upload and never completes, with a js error in console. This is the console log, with debug options set to true and attached image:
UppySocket.js:54 progress
UppySocket.js:54 success
UppySocket.js:54 error
UppySocket.js:70 {action: "progress", payload: {β¦}}
UppySocket.js:59 progress
UppySocket.js:70 {action: "success", payload: {β¦}}
UppySocket.js:59 success
UppySocket.js:73 TypeError: e.getResponseHeader is not a function
at w (index.js:7)
at Object.getResponseData (index.js:141)
at Function. (XHRUpload.js:325)
at index.js:131
at Object.e.emit (index.js:124)
at e.emit (UppySocket.js:60)
at e._handleMessage (UppySocket.js:71)
![image](https://user-images.githubusercontent.com/11704617/37335597-46f520b6-26af-11e8-835f-f19317e6be52.png)
What is the error? How can I solve it?
Please note I can find the uploaded file (from Dropbox) in my s3-bucket, so the upload works, but I suppose it raises an error somewhere, and same thing happens with Drive.
Uppy Client is included via CDN, Uppy Server is up and running in npm.
Thank you very much in advance!