Find your content:

Search form

You are here

Upload images to portfolio using Server Side JavaScript

 
Share

I have a simple html file upload page, an example snippet of the code below.

<html>
   <body>
      <form action="<ExactTarget page with ssjs file handling>" method="post" enctype="multipart/form-data">
        <label for="file">Filename:</label>
        <input type="file" name="file" id="file"><br>
        <input type="submit" name="submit" value="Submit">
      </form>
   </body>
</html>

I can pass the post request onto an exact target landing page but can i then retrieve the file on the landing page using ssjs? And then upload that to a portfolio folder? I can't really find anything in the documentation or perhaps i have not looked in the correct places?

The final goal is to upload an image from my local machine to an ET portfolio folder.

Thanks.


Attribution to: JCS
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/34746

My Block Status

My Block Content