PHPackages                             asmit/filament-upload - 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. asmit/filament-upload

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

asmit/filament-upload
=====================

Filament PDF file upload and preview.

v2.1.0(4w ago)4469.0k↓34.1%8[1 issues](https://github.com/AsmitNepali/filament-upload/issues)[1 PRs](https://github.com/AsmitNepali/filament-upload/pulls)MITJavaScript

Since May 10Pushed 2w ago2 watchersCompare

[ Source](https://github.com/AsmitNepali/filament-upload)[ Packagist](https://packagist.org/packages/asmit/filament-upload)[ RSS](/packages/asmit-filament-upload/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (6)Dependencies (2)Versions (9)Used By (0)

Advanced Upload
===============

[](#advanced-upload)

The **Advanced Upload** plugin allows you to upload PDF files with preview functionality along with Filament's default file upload features. This package provides a seamless way to handle PDF uploads with customizable preview options.

[![Filament Upload Plugin](https://raw.githubusercontent.com/AsmitNepali/filament-upload/refs/heads/main/images/cover.jpg)](https://raw.githubusercontent.com/AsmitNepali/filament-upload/refs/heads/main/images/cover.jpg)

Features
--------

[](#features)

- PDF file upload with live preview
- Customizable preview height
- Configurable page display
- Optional toolbar controls
- Adjustable zoom levels
- Multiple fit types for PDF display
- Optional navigation panes
- Seamless integration with Filament forms

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

[](#installation)

You can install the package via composer:

```
composer require asmit/filament-upload
```

Publishing Assets
-----------------

[](#publishing-assets)

```
php artisan filament:assets
```

Usage
-----

[](#usage)

```
use Asmit\FilamentUpload\Forms\Components\AdvancedFileUpload;

public static function form(Form $form): Form
{
    return $form
        ->schema([
            AdvancedFileUpload::make('file')
                ->label('Upload PDF')
                ->pdfPreviewHeight(400) // Customize preview height
                ->pdfDisplayPage(1) // Set default page
                ->pdfToolbar(true) // Enable toolbar
                ->pdfZoomLevel(100) // Set zoom level
                ->pdfFitType(PdfViewFit::FIT) // Set fit type
                ->pdfNavPanes(true) // Enable navigation panes
        ]);
}
```

Configuration Options
---------------------

[](#configuration-options)

MethodDescriptionDefault`pdfPreviewHeight()`Set the height of PDF preview320px`pdfDisplayPage()`Set the default page to display1`pdfToolbar()`Enable/disable toolbar controlsfalse`pdfZoomLevel()`Set the zoom level percentage100`pdfFitType()`Set the PDF fit typeFIT`pdfNavPanes()`Enable/disable navigation panesfalseCredits
-------

[](#credits)

- [Kishan Sunar](https://github.com/Kishan-Sunar)
- [Asmit Nepal](https://github.com/AsmitNepali)

### Security

[](#security)

If you discover a security vulnerability within this package, please send an e-mail to . All security vulnerabilities will be promptly addressed.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### 📄 License

[](#-license)

The MIT License (MIT). Please see [License File](LICENSE.txt) for more information.

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance95

Actively maintained with recent releases

Popularity45

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.5% 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 ~86 days

Recently: every ~108 days

Total

6

Last Release

28d ago

Major Versions

v1.1.0 → v2.0.02026-01-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/a319ef51eb11470bafa38ab183e1af21162a5d0ed09e48b0595482923816e782?d=identicon)[AsmitNepali](/maintainers/AsmitNepali)

![](https://www.gravatar.com/avatar/0839f88edc4763fccb1cf11fb7892e062ec454b06686baf7e08f7abdf0ecd264?d=identicon)[Kishan-Sunar](/maintainers/Kishan-Sunar)

---

Top Contributors

[![AsmitNepali](https://avatars.githubusercontent.com/u/33512152?v=4)](https://github.com/AsmitNepali "AsmitNepali (22 commits)")[![ki5an](https://avatars.githubusercontent.com/u/53288433?v=4)](https://github.com/ki5an "ki5an (1 commits)")[![kishansunar00](https://avatars.githubusercontent.com/u/53288433?v=4)](https://github.com/kishansunar00 "kishansunar00 (1 commits)")[![shreejanpandit](https://avatars.githubusercontent.com/u/53370534?v=4)](https://github.com/shreejanpandit "shreejanpandit (1 commits)")[![UendelC](https://avatars.githubusercontent.com/u/21681869?v=4)](https://github.com/UendelC "UendelC (1 commits)")[![zvizvi](https://avatars.githubusercontent.com/u/4354421?v=4)](https://github.com/zvizvi "zvizvi (1 commits)")

---

Tags

filamentphplaravelplugin

### Embed Badge

![Health badge](/badges/asmit-filament-upload/health.svg)

```
[![Health](https://phpackages.com/badges/asmit-filament-upload/health.svg)](https://phpackages.com/packages/asmit-filament-upload)
```

###  Alternatives

[filament/filament

A collection of full-stack components for accelerated Laravel app development.

3932.5M4.3k](/packages/filament-filament)[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1826.5M238](/packages/filament-spatie-laravel-media-library-plugin)[filament/forms

Easily add beautiful forms to any Livewire component.

4834.0M470](/packages/filament-forms)[filament/tables

Easily add beautiful tables to any Livewire component.

3733.5M188](/packages/filament-tables)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1330.7M77](/packages/filament-infolists)[filament/notifications

Easily add beautiful notifications to any Livewire app.

2533.8M91](/packages/filament-notifications)

PHPackages © 2026

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