# Save p5js-Script to ipfs with correct MimeType

**URL:** <https://discourse.processing.org/t/save-p5js-script-to-ipfs-with-correct-mimetype/38077>\
**Category:** Coding Questions\
**Created:** [July 24, 2022, 4:49pm UTC](https://discourse.processing.org/t/save-p5js-script-to-ipfs-with-correct-mimetype/38077 "2022-07-24T16:49:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![res56](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@res56](https://discourse.processing.org/u/res56)\
**Post date:** [July 24, 2022, 4:49pm UTC](https://discourse.processing.org/t/save-p5js-script-to-ipfs-with-correct-mimetype/38077/1 "2022-07-24T16:49:20Z")

</div>

Hello everyone,

I want to save a p5js Script to ipfs with node.js

It is necassary to store the script in a string value. What is the smartest way to set the Mimetype to application/javascript so the Browser is able to render the script.

Thanks in advance,  
Res
