PHPackages                             pessek/pessek\_attachments - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. pessek/pessek\_attachments

ActiveElgg-plugin[File &amp; Storage](/categories/file-storage)

pessek/pessek\_attachments
==========================

File attachments for Elgg

4.1(4y ago)05proprietaryPHPPHP &gt;=7.4

Since Dec 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/rheman/pessek_attachments)[ Packagist](https://packagist.org/packages/pessek/pessek_attachments)[ RSS](/packages/pessek-pessek-attachments/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Attachments for Elgg
====================

[](#attachments-for-elgg)

[![Elgg 4.0](https://camo.githubusercontent.com/b1d01246e0107a41c37e5a81857f07c8eef37b85e910c4ff09f8bad002634eb5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d342e302d677265656e2e737667)](https://camo.githubusercontent.com/b1d01246e0107a41c37e5a81857f07c8eef37b85e910c4ff09f8bad002634eb5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d342e302d677265656e2e737667)

Features
--------

[](#features)

- API and UI for attaching files and other entities
- Form input for uploading file attachments
- Views for displaying attachments

Usage
-----

[](#usage)

### Magic

[](#magic)

If you add your entity subtype to a list of entities supporting attachments, the plugin will attempt to create all of the UI, necessary to upload and display attachments:

```
elgg_register_plugin_hook_handler('allow_attachments', 'object:my_subtype', '\Elgg\Values::getTrue');
```

Note that this generic approach might not work with all plugins, and may require additional customizations on your side.

### Display an attachment input

[](#display-an-attachment-input)

```
echo elgg_view('input/attachments');
```

To add an attachments input to your comment and discussion replies forms, use the following code. You will not need to add any code to your save action.

```
echo elgg_view('input/attachments', [
	'name' => 'comment_attachments',
		]);
```

To add an attachments input to your personal messages and replies forms, use the following code. You will not need to add any code to your save action.

```
echo elgg_view('input/attachments', [
		'name' => 'message_attachments',
	]);
```

Note that if you are not using *hypeDropzone*, your form must have it's encoding set to `multipart/form-data`.

### Attach uploaded files in an action

[](#attach-uploaded-files-in-an-action)

```
hypeapps_attach_uploaded_files($entity, 'upload', [
   'access_id' => $entity->access_id, // change the access level of uploaded files
]);
```

### Attach an object

[](#attach-an-object)

```
hypeapps_attach($entity, $attachment);
```

### Display attachments

[](#display-attachments)

```
```php
echo elgg_view('output/attachments', [
	'entity' => $entity,
]);
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

2

Last Release

1650d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17824857?v=4)[rhemandaddy](/maintainers/rhemandaddy)[@rhemandaddy](https://github.com/rhemandaddy)

---

Tags

pluginelggfilesattachments

### Embed Badge

![Health badge](/badges/pessek-pessek-attachments/health.svg)

```
[![Health](https://phpackages.com/badges/pessek-pessek-attachments/health.svg)](https://phpackages.com/packages/pessek-pessek-attachments)
```

###  Alternatives

[deliciousbrains/wp-amazon-s3-and-cloudfront

Automatically copies media uploads to a storage provider's bucket for delivery. Optionally configure a CDN for even faster delivery.

312214.1k1](/packages/deliciousbrains-wp-amazon-s3-and-cloudfront)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[humanmade/network-media-library

Network Media Library provides a central media library that's shared across all sites on the Multisite network.

29644.9k](/packages/humanmade-network-media-library)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
