owainjones74/filament-file-upload-chunked 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

owainjones74/filament-file-upload-chunked

最新稳定版本:1.0.2

Composer 安装命令:

composer require owainjones74/filament-file-upload-chunked

包简介

Filament file uploads with support for chunking

README 文档

README

📂 Chunked file uploads for Filament PHP 🗄️

This packages allows for chunking file uploads. It's VERY hacky and messy, but it works (I think). I wrote this package to work around the 100MB Cloudflare limit.

https://packagist.org/packages/owainjones74/filament-file-upload-chunked

How to use

  1. Install the package using composer require owainjones74/filament-file-upload-chunked
  2. Import the package inside your Filament Resouce with use OwainJones74\FilamentFileUploadChunked\Forms\Components\FileUploadChunked;
  3. If required, publish the javascript file php artisan filament:assets.
  4. Replace the built in file upload with the FileUploadChunked class inside your form.

Docs

The only additional chained method you can add when defining this component in your schema is ->chunkSize(int|closure). This will allow you to set the chunk size in bytes. The default is 50MB.

Things that don't work

  • Only a single file is allowed to be uploaded for each UI component.
  • The method for pulling the file type is not ideal, some file types may not be supported. .dmg files for example just don't work. If you have a suggestion for doing this better, please make a PR! <3

Credits

  • This is based on the existing file upload component in Filament, I just added the chunking functionality.

Read the code at your own risk

统计信息

  • 总下载量: 1.67k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 17
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 17
  • Watchers: 1
  • Forks: 2
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固