PHPackages                             zephyrisle/fof-upload-preview - 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. zephyrisle/fof-upload-preview

AbandonedFlarum-extension[File &amp; Storage](/categories/file-storage)

zephyrisle/fof-upload-preview
=============================

Preview video, audio, Office documents and PDF files uploaded through FoF Upload on Flarum v2.

05↓87.5%TypeScript

Since Jun 6Pushed 1mo agoCompare

[ Source](https://github.com/Zephyr-Isle/fof-upload-preview)[ Packagist](https://packagist.org/packages/zephyrisle/fof-upload-preview)[ RSS](/packages/zephyrisle-fof-upload-preview/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

fof-upload-preview
==================

[](#fof-upload-preview)

A Flarum extension that adds inline previews for files uploaded with `fof/upload`.

Features
--------

[](#features)

- Video preview powered by DPlayer
- Audio preview powered by APlayer
- PDF preview with iframe embed
- Office preview through Office Web Viewer
- Admin settings for each preview type, preview height and player CDN URLs

Supported file extensions
-------------------------

[](#supported-file-extensions)

- Video: `mp4`, `webm`, `ogg`, `ogv`, `avi`, `mov`, `ts`, `3gp`, `3g2`, `m4v`
- Audio: `mp3`, `ogg`, `oga`, `wav`, `m4a`, `aac`, `flac`, `opus`, `weba`, `mid`, `midi`
- PDF: `pdf`
- Office: `doc`, `docx`, `xls`, `xlsx`, `ppt`, `pptx`

Recommended FoF Upload MIME regex
---------------------------------

[](#recommended-fof-upload-mime-regex)

```
^image\/(jpeg|png|gif|webp|avif|bmp|tiff|svg\+xml)$
^video\/(mp4|webm|ogg|x-msvideo|quicktime|mp2t|3gpp|3gpp2)$
^audio\/(mpeg|ogg|wav|flac|aac|webm|x-wav|x-flac|midi)$
^(application\/msword|application\/vnd\.openxmlformats-officedocument\.wordprocessingml\.document|application\/vnd\.ms-excel|application\/vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|application\/vnd\.ms-powerpoint|application\/vnd\.openxmlformats-officedocument\.presentationml\.presentation|application\/pdf)$

```

Installation
------------

[](#installation)

```
composer require zephyrisle/fof-upload-preview
```

Then enable the extension in the Flarum admin panel.

Notes
-----

[](#notes)

Office Web Viewer only works for publicly accessible document URLs.

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance60

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

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/ac5dcab64b681ca4252624f74d6a75ffe53795b48eb30710fba9c367b4aeb0d8?d=identicon)[Zephyr-Isle](/maintainers/Zephyr-Isle)

---

Top Contributors

[![Zephyr-Isle](https://avatars.githubusercontent.com/u/133970629?v=4)](https://github.com/Zephyr-Isle "Zephyr-Isle (5 commits)")

### Embed Badge

![Health badge](/badges/zephyrisle-fof-upload-preview/health.svg)

```
[![Health](https://phpackages.com/badges/zephyrisle-fof-upload-preview/health.svg)](https://phpackages.com/packages/zephyrisle-fof-upload-preview)
```

###  Alternatives

[olivierbon/craft-squeeze

Zip one or multiple craft assets on the fly for frontend user to download.

137.5k](/packages/olivierbon-craft-squeeze)

PHPackages © 2026

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