unikent / astro

MIT License
7 stars 2 forks source link

Fix/profile media uploads #259

Closed sy238-unikent closed 6 years ago

sy238-unikent commented 6 years ago

Make uploading new media work on profiles.

It looks like the code expects to be able to use a site_id param from the route, however the router was configured to use siteId as the name of the param.

As site_id is used in all the other routes, and is what is expected in the code I have modified this.

I have also modified the media controller to throw an error if it doesn't get a site_id together when creating media.