# Web app to serve only images

**URL:** <https://community.cumulocity.com/t/web-app-to-serve-only-images/7999>\
**Category:** Forum\
**Tags:** app-enablement\
**Created:** [February 10, 2025, 6:39am UTC](https://community.cumulocity.com/t/web-app-to-serve-only-images/7999 "2025-02-10T06:39:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harald\_Meyer](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/harald_meyer/32/1959_2.png) [@Harald\_Meyer](https://community.cumulocity.com/u/Harald_Meyer)\
**Post date:** [February 10, 2025, 6:39am UTC](https://community.cumulocity.com/t/web-app-to-serve-only-images/7999/1 "2025-02-10T06:39:15Z")

</div>

Hi,

I would like to create a WebApp that contains only images in a folder structure to be consumed by another app. Do I have to create a new Angular project for this or what is the bare minimum for Cumulocity to make the images accessible via /apps//folder1/image1.jpg?

---

<div class="post-metadata">

**Author:** ![Sandeep\_Komarneni](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/sandeep_komarneni/32/18273_2.png) [@Sandeep\_Komarneni](https://community.cumulocity.com/u/Sandeep_Komarneni)\
**Post date:** [February 10, 2025, 8:00am UTC](https://community.cumulocity.com/t/web-app-to-serve-only-images/7999/2 "2025-02-10T08:00:21Z")

</div>

I believe the bare minimum is to have the cumulocity.json manifest present with the appropriate fields.

example

```auto
{
  "contextPath": "folder1",
  "availability": "MARKET",
  "type": "HOSTED",
  "name": "myImages",
  "key": "myImages-key",
  "uiHide": true,
  "noAppSwitcher": true
}

```

---

<div class="post-metadata">

**Author:** ![Hendrik\_Naether1](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/hendrik_naether1/32/17494_2.png) [@Hendrik\_Naether1](https://community.cumulocity.com/u/Hendrik_Naether1)\
**Post date:** [February 10, 2025, 8:57am UTC](https://community.cumulocity.com/t/web-app-to-serve-only-images/7999/3 "2025-02-10T08:57:08Z")

</div>

What is the use case behind that? Instead of creating a seperate app, why not uploading the images using the Files repository (administration/index.html#/files) in the admin app, and then managing the access e.g. via tenant options (using the [Tenant Option plugin](https://github.com/Cumulocity-IoT/cumulocity-tenant-option-management-plugin)) in the consuming app? That way you would not need to upload new versions of the pure image app, but instead could just update your tenant options.

---

<div class="post-metadata">

**Author:** ![Tristan\_Bastian](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/tristan_bastian/32/18259_2.png) [@Tristan\_Bastian](https://community.cumulocity.com/u/Tristan_Bastian)\
**Post date:** [February 10, 2025, 9:14am UTC](https://community.cumulocity.com/t/web-app-to-serve-only-images/7999/4 "2025-02-10T09:14:38Z")

</div>

There should not be a need to even have a `cumulocity.json` file. You can also just upload a zip file containing your desired folder structure and images.

Using a hosted web app instead of the file repository has the benefit that the images will be cached on client side. Only downside might be that your images are in general publically available…

---

<div class="post-metadata">

**Author:** ![Harald\_Meyer](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/harald_meyer/32/1959_2.png) [@Harald\_Meyer](https://community.cumulocity.com/u/Harald_Meyer)\
**Post date:** [February 10, 2025, 9:14am UTC](https://community.cumulocity.com/t/web-app-to-serve-only-images/7999/5 "2025-02-10T09:14:52Z")

</div>

Reason is that we want to have a folder structure to group images and want to have all images in a single location. There are already several hundred files in the File repository making it hard to track.

---

<div class="post-metadata">

**Author:** ![Harald\_Meyer](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/harald_meyer/32/1959_2.png) [@Harald\_Meyer](https://community.cumulocity.com/u/Harald_Meyer)\
**Post date:** [February 10, 2025, 9:15am UTC](https://community.cumulocity.com/t/web-app-to-serve-only-images/7999/6 "2025-02-10T09:15:35Z")

</div>

> [@Tristan\_Bastian](#):
>
> general publically available…

If you have access to the tenant, right?

---

<div class="post-metadata">

**Author:** ![Tristan\_Bastian](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/tristan_bastian/32/18259_2.png) [@Tristan\_Bastian](https://community.cumulocity.com/u/Tristan_Bastian)\
**Post date:** [February 10, 2025, 9:28am UTC](https://community.cumulocity.com/t/web-app-to-serve-only-images/7999/7 "2025-02-10T09:28:22Z")

</div>

> [@Harald\_Meyer](#):
>
> If you have access to the tenant, right?

No, the static files served by Cumulocity’s application hosting feature are publicly available and do not require a login to access them.  
So in case you know the path to a file, you can access it.

---

<div class="post-metadata">

**Author:** ![Harald\_Meyer](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/harald_meyer/32/1959_2.png) [@Harald\_Meyer](https://community.cumulocity.com/u/Harald_Meyer)\
**Post date:** [February 11, 2025, 9:28am UTC](https://community.cumulocity.com/t/web-app-to-serve-only-images/7999/8 "2025-02-11T09:28:26Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
