asmit/filament-upload

Filament PDF file upload and preview.
96,194 45
Install
composer require asmit/filament-upload
Latest Version:v2.1.0
Laravel:11 · 12 · 13
License:MIT
Last Updated:Jul 31, 2026
Links: GitHub  ·  Packagist
Maintainer: AsmitNepali

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

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

You can install the package via composer:

composer require asmit/filament-upload

Publishing Assets

php artisan filament:assets

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

Method Description Default
pdfPreviewHeight() Set the height of PDF preview 320px
pdfDisplayPage() Set the default page to display 1
pdfToolbar() Enable/disable toolbar controls false
pdfZoomLevel() Set the zoom level percentage 100
pdfFitType() Set the PDF fit type FIT
pdfNavPanes() Enable/disable navigation panes false

Credits

Security

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

Contributing

Please see CONTRIBUTING for details.

📄 License

The MIT License (MIT). Please see License File for more information.

Related Packages

tightenco/ziggy

Use your Laravel named routes in JavaScript.

59,778,798 4,321
spatie/shiki-php

Highlight code using Shiki in PHP

33,470,429 315
mpociot/documentarian
3,406,223 375
malzariey/filament-daterangepicker-filter

This package uses daterangepciker library to filter date by a range or predefine...

3,184,347 178
emilianotisato/nova-tinymce

This Nova package allow you to use TinyMCE editor for text areas.You can customi...

1,031,528 116

Version History

Version Released License
v2.1.0 MIT
v2.0.0 MIT
v1.1.0 MIT
v1.0.2 MIT
v1.0.1 MIT