PHPackages                             wwwision/form-securefileupload - 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. wwwision/form-securefileupload

ActiveNeos-package[File &amp; Storage](/categories/file-storage)

wwwision/form-securefileupload
==============================

Flow package with examples and helpers to implement secure form uploads

1.1.0(4y ago)11.8k2MITPHP

Since Jun 16Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bwaidelich/Wwwision.Form.SecureFileUpload)[ Packagist](https://packagist.org/packages/wwwision/form-securefileupload)[ RSS](/packages/wwwision-form-securefileupload/feed)WikiDiscussions master Synced 1mo ago

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

Wwwision.Form.SecureFileUpload
==============================

[](#wwwisionformsecurefileupload)

Flow package with examples and helpers to implement secure form uploads

Description
-----------

[](#description)

When using the default `FileUpload` element of the [Flow Form Framework](https://github.com/neos/form) instances of `PersistentResource` are created in the default (`persistent`) resource collection that creates publicly accessible URLs for each resource. This package configures all `FileUpload` fields to use a new resource collection `formUploads` that uses "private resources" provided by the [wwwision/privateresources](https://github.com/bwaidelich/Wwwision.PrivateResources) package.

This also contains a Form finisher that removes uploaded resources once they have been processed or sent via email for example.

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

[](#installation)

```
composer require wwwision/form-securefileupload

```

Usage
-----

[](#usage)

By installing this package, files that are uploaded via the `FileUpload` form element are automatically stored in the protected `formUploads` resource collection.

### Cleanup uploaded files

[](#cleanup-uploaded-files)

With this package, uploaded files are no longer accessible from the "outside" without a valid token (see ). However, they are still persisted in the servers filesystem (by default) and referenced via the `neos_flow_resourcemanagement_persistentresource`database table.

In order to remove uploaded files after they have been processed, the provided `RemoveUploads` finisher can be used.

From the form definition (yaml):

```
type: 'Neos.Form:Form'
identifier: 'contact'
label: 'Contact form'
renderables:
  -
    type: 'Neos.Form:Page'
    identifier: 'page-one'
    # renderables: ...
finishers:
  -
    # process uploads (e.g. send via email)
    identifier: 'Neos.Form:Email'
    options:
      attachAllPersistentResources: true
      # ...
  -
    # delete persistent resources
    identifier: 'Wwwision.Form.SecureFileUpload:RemoveUploadsFinisher'
```

*Note:* In the current implementation the `RemoveUploads` finisher iterates over all form elements and deletes all instances of `PersistentResource`. For a more fine granular behavior you should create a custom finisher (or send a pull request my way \*g)

### Form Builder

[](#form-builder)

This package can be used with the [neos/form-builder](https://github.com/neos/form-builder) package of course. In order to be able to attach the finisher from the backend, a corresponding Node Type and fusion definition is required:

*NodeTypes.yaml:*

```
'Your.Package:RemoveUploadsFinisher':
  superTypes:
    'Neos.Form.Builder:AbstractFinisher': true
  ui:
    label: 'Remove Uploads Finisher'
    icon: 'icon-trash'
```

*root.fusion*:

```
prototype(Your.Package:RemoveUploadsFinisher.Definition) < prototype(Neos.Form.Builder:Finisher.Definition) {
    formElementType = 'Wwwision.Form.SecureFileUpload:Finisher.RemoveUploads'
}

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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.

###  Release Activity

Cadence

Every ~163 days

Total

4

Last Release

1670d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/307571?v=4)[Bastian Waidelich](/maintainers/bwaidelich)[@bwaidelich](https://github.com/bwaidelich)

---

Top Contributors

[![bwaidelich](https://avatars.githubusercontent.com/u/307571?v=4)](https://github.com/bwaidelich "bwaidelich (5 commits)")[![SimonPaidla](https://avatars.githubusercontent.com/u/28459705?v=4)](https://github.com/SimonPaidla "SimonPaidla (1 commits)")

### Embed Badge

![Health badge](/badges/wwwision-form-securefileupload/health.svg)

```
[![Health](https://phpackages.com/badges/wwwision-form-securefileupload/health.svg)](https://phpackages.com/packages/wwwision-form-securefileupload)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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