eval-so / minibcs

A tiny implementation of BCS
Apache License 2.0
3 stars 2 forks source link

Allow file upload/download. #1

Closed relrod closed 11 years ago

relrod commented 11 years ago

In talking with @danopia on IRC, an interesting idea is to allow files to be uploaded and downloaded via the API.

So, in JSON terms, this could look like:

{
  "files": {
    "filename.png": "<some base64>"
  }
}

Every file, both uploaded and downloaded, will be base64 encoded, for simplicity.

This allows code to call out to helper files, and allows languages that generate files (like statistical languages such as R and Dot) to have their result sent back.

This has both a frontend and minibcs component to it. Once the minibcs side is done, the frontend should be updated to make it work. However, adding this feature shouldn't break Frontend, before Frontend is updated.