att / rcloud.shiny

Shiny support for RCloud
Other
4 stars 12 forks source link

File upload example from shiny gallery is currently not working in RCloud #2

Closed gordonwoodhull closed 7 years ago

gordonwoodhull commented 9 years ago

From @GanapatiBhat on October 21, 2014 1:9

Whenever user loads a file using shiny API a POST request is made to the session which looks something like below, which tries to write the file to tempdir()

Remote Address:127.0.0.1:8080 Request URL:http://127.0.0.1:8080/session/b248c49e4d4632e19db135cc58af6d8c/upload/1100eae0eefe31cb46d74cdc?w= Request Method:POST Status Code:404 Code 404

Shiny handleRequest function is not able to handle the above request in RCloud.

We can use RCloud file upload as an alternative but we cannot connect them back to shiny callback/render functions

screenshot from 2014-10-20 20 29 53

Copied from original issue: att/rcloud#957

gordonwoodhull commented 9 years ago

I see. Thanks for tracking this down. Do you see if it's possible to replace the function on the JavaScript side that is making the request? I assume they are using jquery ajax but perhaps they have a wrapper function?

This is what we did for the websocket itself, and I'd prefer this to adding a server (although we could presumably handle http://.../session/ as well).

gordonwoodhull commented 7 years ago

Fixed in rcloud.shiny 0.4 (RCloud 1.7)