<div dir="ltr">Yeah, I guess that would be a good solution for sample data and stuff. Doesn't work for user defined bits and pieces though. For actions we current "cat" the content into a parameter, but of course that doesn't work for everything, and really really sucks when you try and cat unescaped JSON into it. But for users who want to deploy their own content to services, personally I think it would just be cleaner to allow a file type in an action for people to pass in.</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">--------------<div><br></div><div><div style="font-size:small"><font color="#999999">Director Meteorite.bi - Saiku Analytics Founder</font></div><div style="font-size:small"><font color="#999999">Tel: +44(0)5603641316 </font></div><div style="font-size:small"><font color="#999999"><br></font></div><div style="font-size:small"><font color="#999999">(Thanks to the Saiku community we reached our <a href="http://kickstarter.com/projects/2117053714/saiku-reporting-interactive-report-designer/" target="_blank">Kickstart</a> goal, but you can always help by <a href="http://www.meteorite.bi/products/saiku/sponsorship" target="_blank">sponsoring the project</a>)</font></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 18 March 2016 at 16:44, Eric Snow <span dir="ltr"><<a href="mailto:eric.snow@canonical.com" target="_blank">eric.snow@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Mar 18, 2016 at 8:57 AM, Tom Barber <<a href="mailto:tom@analytical-labs.com">tom@analytical-labs.com</a>> wrote:<br>
> c) upload files with actions. Currently for some things I need to pass in<br>
> some files then trigger an action on the unit upon that file. It would be<br>
> good to say path=/tmp/<a href="http://myfile.xyz" rel="noreferrer" target="_blank">myfile.xyz</a> and have the action upload that to a place<br>
> you define.<br>
<br>
</span>Have you taken a look at resources in the upcoming 2.0? You define<br>
resources in your charm metadata and use "juju attach" to upload them<br>
to the controller (e.g. "juju attach my-service/0<br>
my-resource=/tmp/<a href="http://myfile.xyz" rel="noreferrer" target="_blank">myfile.xyz</a>"). * Then charms can use the<br>
"resource-get" hook command to download the resource file from the<br>
controller. "resource-get" returns the path where the downloaded file<br>
was saved.<br>
<br>
-eric<br>
<br>
<br>
* You will also upload the resources to the charm store for charm store charms.<br>
</blockquote></div><br></div>