Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Android Assets Upload #2

Open
enyachoke opened this Issue · 4 comments

3 participants

@enyachoke

I can create and asset using the android sdk createEntityAsync is there a way I can upload the data via the sdk or I have to do a bare bone http post.

@karlunho
Collaborator

Hi Enya,

Unfortunately we do not have this feature implemented in our SDK. Would be happy to accept a pull-request if you extend our SDK.

@enyachoke

Thank you for the response. We needed a quick solution for our client so went with amazon s3 for holding our assets. We then link them to an activity. We are still looking into using assets though and I will be happy to contribute it back to the community.

@zznate

If you have an example of this somewhere or can post a gist, I would like to see this approach.

We have a wholesale refactor of binary on the roadmap for the near term and are really open to users' feedback here.

@enyachoke

Here is a full gist that uploads to s3 on the client side and then links the asset to and activity https://gist.github.com/enyachoke/5516441. This code works fine but is was a quick hack because the application is a prove of concept. What I'm considering is creating a custom activity endpoint on user-grid stack (Hopefully that is possible) That extends the functionality of the activity endpoint with the ability to accept and "attachment" parameter save that on the disk and attach it to the activity server-side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.