Posting images into Nosto via Tile API

Overview

In a previous guide, we addressed how to post content directly into Nosto's UGC via API. In this guide, we will expand on that guide and ingest image content into the same Stack.

If you have not already, please consult the Posting content into Nosto via Tile API guide.

Key concepts

Text, Image, Video and HTML Tiles

Nosto's UGC Tiles can come in many shapes and sizes: text-only, image with message, video with a title and message or a HTML tile for rich text and imagery. There are also future types reserved for expansion.

Example Application

The previous example built an application that had a Term configured, and a small app that sent messages of fan-love to a faux Bon Iver fan page. We will simply extend on that applicaiton, so there are no changes needed to the Term or the Stack itself. If you have not already, please consult the Posting content into Nosto via Tile API guide for more detailes on how to build these.

Note about pre-requisites

This example uses the PHP GD library, however the code is easily adaptable to a different library if needed, or can be removed if GD is not available.

The Fun Part

Getting Started

In this example we will need to do the following:

  1. Modify the microsite View

  2. Modify the backend app

  3. Moderate the posted content

Modify the microsite View

The old view sent data back to the backend via AJAX. Since we need to send a file this time, we will use a simple form POST instead, to keep things simple.

The output will resemble something like the following.

Last updated

Was this helpful?