tag:help.tenderapp.com,2008-11-12:/discussions/problems/77772-unable-to-attach-groovy-scripts-contents-that-are-not-what-they-are-reported-to-beTender: Discussion 2018-10-18T06:27:48Ztag:help.tenderapp.com,2008-11-12:Comment/412284192016-11-15T23:35:46Z2016-11-15T23:35:46ZUnable to attach Groovy scripts: "contents that are not what they are reported to be"<div><p>it's because you're using a custom mime type and extension. What
mime type are the scripts being reported as?</p></div>Courtenaytag:help.tenderapp.com,2008-11-12:Comment/412284192016-11-16T08:32:40Z2016-11-16T08:32:40ZUnable to attach Groovy scripts: "contents that are not what they are reported to be"<div><p>Hey Courtenay,</p>
<p>Tender does not report a MIME type when you attach things (see
screenshot).<br>
The extension for Groovy is <code>.groovy</code>. Please add
support for it.</p>
<p>Thanks.</p>
<p>-hendrik</p></div>hendriktag:help.tenderapp.com,2008-11-12:Comment/412284192016-11-16T08:55:04Z2016-11-16T08:55:04ZUnable to attach Groovy scripts: "contents that are not what they are reported to be"<div><p>Bzz! Correct answer is text/x-java ;) I'll fix it. It's for
security reasons - content type spoofing - unfortunately results in
blocking some desired actions.</p></div>Courtenaytag:help.tenderapp.com,2008-11-12:Comment/412284192016-11-16T09:14:00Z2016-11-16T09:14:00ZUnable to attach Groovy scripts: "contents that are not what they are reported to be"<div><blockquote>
<p>Correct answer is text/x-java ;)</p>
</blockquote>
<p>Really? I would have thought <code>text/x-groovy</code> as used
on (for example):</p>
<ul>
<li><a href="https://docs.oracle.com/javase/tutorial/deployment/selfContainedApps/fileassociation.html">
https://docs.oracle.com/javase/tutorial/deployment/selfContainedApp...</a></li>
<li><a href="https://github.com/gmate/gmate/blob/master/mime/groovy-mime.xml">https://github.com/gmate/gmate/blob/master/mime/groovy-mime.xml</a></li>
<li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=18329">https://bugs.freedesktop.org/show_bug.cgi?id=18329</a></li>
</ul></div>hendriktag:help.tenderapp.com,2008-11-12:Comment/412284192016-11-18T04:00:58Z2016-11-18T04:00:58ZUnable to attach Groovy scripts: "contents that are not what they are reported to be"<div><p>there's a bug in some browsers that upload everything as a weird
content type, but I'm working around it and it all should work now.
Should.</p></div>Courtenaytag:help.tenderapp.com,2008-11-12:Comment/412284192016-11-18T04:19:14Z2016-11-18T04:19:14ZUnable to attach Groovy scripts: "contents that are not what they are reported to be"<div><p>testing :)</p></div>Courtenaytag:help.tenderapp.com,2008-11-12:Comment/412284192016-11-18T07:51:16Z2016-11-18T07:51:16ZUnable to attach Groovy scripts: "contents that are not what they are reported to be"<div><p>Thanks!</p>
<p>-hendrik</p></div>hendrik