<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[aws-s3-storage for report with out API call]]></title><description><![CDATA[<p>I can store my xlsx file by API call as follows:<br />
POST <a href="http://xx.xx.xx.xxx:8443/api/report" rel="nofollow">http://xx.xx.xx.xxx:8443/api/report</a></p>
<pre><code>{
      &quot;template&quot;: { &quot;shortid&quot; : &quot;2F44QoE&quot; },      
      &quot;options&quot;: {
          &quot;reports&quot;: { &quot;save&quot;: true, &quot;blobName&quot;: &quot;dailyrpta/myfilename3&quot; }
      }
   } 
</code></pre>
<p>But, I need to do this in the script with the template because I have to scedule to run daily, I have tried the following, even this is working with the API call only.</p>
<pre><code>async function beforeRender(req, res) {   
    if (res.meta.reportsOptions) {
        res.meta.reportsOptions.blobName = &quot;dailyrpta/daily_report&quot; + new Date().getTime()   
    }
}
</code></pre>
<p>I think I am missing only this part  &quot;reports&quot;: { &quot;save&quot;: true, ) in the script.<br />
Please let me know if you have any idea.</p>
]]></description><link>https://forum.jsreport.net/topic/2652/aws-s3-storage-for-report-with-out-api-call</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 15:32:10 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/2652.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Dec 2022 19:04:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to aws-s3-storage for report with out API call on Thu, 08 Dec 2022 19:05:19 GMT]]></title><description><![CDATA[<p>I can store my xlsx file by API call as follows:<br />
POST <a href="http://xx.xx.xx.xxx:8443/api/report" rel="nofollow">http://xx.xx.xx.xxx:8443/api/report</a></p>
<pre><code>{
      &quot;template&quot;: { &quot;shortid&quot; : &quot;2F44QoE&quot; },      
      &quot;options&quot;: {
          &quot;reports&quot;: { &quot;save&quot;: true, &quot;blobName&quot;: &quot;dailyrpta/myfilename3&quot; }
      }
   } 
</code></pre>
<p>But, I need to do this in the script with the template because I have to scedule to run daily, I have tried the following, even this is working with the API call only.</p>
<pre><code>async function beforeRender(req, res) {   
    if (res.meta.reportsOptions) {
        res.meta.reportsOptions.blobName = &quot;dailyrpta/daily_report&quot; + new Date().getTime()   
    }
}
</code></pre>
<p>I think I am missing only this part  &quot;reports&quot;: { &quot;save&quot;: true, ) in the script.<br />
Please let me know if you have any idea.</p>
]]></description><link>https://forum.jsreport.net/post/11488</link><guid isPermaLink="true">https://forum.jsreport.net/post/11488</guid><dc:creator><![CDATA[Anandanr]]></dc:creator><pubDate>Thu, 08 Dec 2022 19:05:19 GMT</pubDate></item><item><title><![CDATA[Reply to aws-s3-storage for report with out API call on Invalid Date]]></title><description><![CDATA[<p>Your intention is to customize the blob name in the script right?</p>
<p>We have a bit old backlog item for this, please check it out and let me know if that helps.<br />
<a href="https://github.com/jsreport/jsreport/issues/789" rel="nofollow">https://github.com/jsreport/jsreport/issues/789</a></p>
]]></description><link>https://forum.jsreport.net/post/11489</link><guid isPermaLink="true">https://forum.jsreport.net/post/11489</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to aws-s3-storage for report with out API call on Invalid Date]]></title><description><![CDATA[<p>I am having this script already.<br />
The issue is, report is not stored to s3 while running through studio or schedules.</p>
<p>It is storing or going s3 while I am running through API with following:<br />
POST <a href="http://xx.xx.xx.xxx:8443/api/report" rel="nofollow">http://xx.xx.xx.xxx:8443/api/report</a><br />
{<br />
&quot;template&quot;: { &quot;shortid&quot; : &quot;2F44QoE&quot; },<br />
&quot;options&quot;: {<br />
&quot;reports&quot;: { &quot;save&quot;: true }<br />
}<br />
}</p>
<p>Just I need to bring this to the script.</p>
]]></description><link>https://forum.jsreport.net/post/11490</link><guid isPermaLink="true">https://forum.jsreport.net/post/11490</guid><dc:creator><![CDATA[Anandanr]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to aws-s3-storage for report with out API call on Invalid Date]]></title><description><![CDATA[<blockquote>
<p>The issue is, report is not stored to s3 while running through studio or schedules.</p>
</blockquote>
<p>The schedules should store reports to the defined blob storage.</p>
<p>The studio doesn't and you can't change this with the script. It runs later in the pipeline.</p>
<p>You could <code>require</code> a <code>aws-s3</code> nodejs lib and upload there on your own in script, without using jsreport <code>reports</code> extension.</p>
]]></description><link>https://forum.jsreport.net/post/11491</link><guid isPermaLink="true">https://forum.jsreport.net/post/11491</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to aws-s3-storage for report with out API call on Invalid Date]]></title><description><![CDATA[<p>&quot;The studio doesn't&quot;<br />
I was confused by this.</p>
<p>By schedule it works! Thanks..</p>
]]></description><link>https://forum.jsreport.net/post/11492</link><guid isPermaLink="true">https://forum.jsreport.net/post/11492</guid><dc:creator><![CDATA[Anandanr]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>