PHPackages                             sunlab/wn-forumupload-plugin - 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. sunlab/wn-forumupload-plugin

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

sunlab/wn-forumupload-plugin
============================

Adds file upload management for winter/wn-forum-plugin

301PHP

Since Sep 13Pushed 3y agoCompare

[ Source](https://github.com/SunLabDev/wn-forumupload-plugin)[ Packagist](https://packagist.org/packages/sunlab/wn-forumupload-plugin)[ RSS](/packages/sunlab-wn-forumupload-plugin/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Forum Upload
============

[](#forum-upload)

This plugin extends Winter.Forum to adds front-end user file upload capabilities to it.

It extends the `Topic` component to add a `onFileUpload` handler which:

- store the uploaded files
- attach them to the `Post` model

[![File upload Preview](file-upload-preview.gif)](file-upload-preview.gif)

### Under development

[](#under-development)

This plugin is still under active development and should not be used in a production environment.

### Installation

[](#installation)

This plugin can be installed using composer:

```
composer require sunlab/wn-levelup-plugin

```

### How to use it

[](#how-to-use-it)

The plugin doesn't provide any front end component, you need to customize yourself the way the file should be attached on the frontend side, you can use it with Dropzone.js, a richeditor or any custom implementation.

[You can find here](https://gist.github.com/RomainMazB/b93fa2d1df7f93730c2f67ef13a6bed6) a custom implementation reproducing a GitHub-like mechanism (as shown above).

Basically: you need to trigger an AJAX call for the handler `onFileUpload` sending files (the input name doesn't matter). The handler will return server-side uploaded files' information containing:

```
    id => the File model id
    originalName => the uploaded original file name
    name => same as originalName without extension
    url => the server-side file's url

```

### Settings

[](#settings)

The plugin includes a Settings model to validate uploads, including:

- The allowed file extensions
- A max filesize limit
- The amount of files per post

### Todo:

[](#todo)

- Add a `onFileDeletion` handler to remove an attached file

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/13edfd2ca556efd1be6f0191a5b3a760ae4156257907b0138a3c3f9a8870354c?d=identicon)[RomainMazB](/maintainers/RomainMazB)

---

Top Contributors

[![RomainMazB](https://avatars.githubusercontent.com/u/53976837?v=4)](https://github.com/RomainMazB "RomainMazB (5 commits)")

### Embed Badge

![Health badge](/badges/sunlab-wn-forumupload-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/sunlab-wn-forumupload-plugin/health.svg)](https://phpackages.com/packages/sunlab-wn-forumupload-plugin)
```

PHPackages © 2026

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