Download the PHP package githen/laravel-upload without Composer

On this page you can find all versions of the php package githen/laravel-upload. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-upload

laravel-upload

基于Dropzone为laravel提供上传支持

image image image

安装

配置文件说明

config/filesystem.php中添加目录public配置项

生成upload.php上传配置文件

初始化上传实例

自动发现功能将在6.0.0中删除,如果依赖此功能,需要手动关闭。默认生成的JS已处理,可忽略。

html中引入JS文件

进行实例化

参数 名称 说明 备注
dom 实例化的DOM标识 必填
csrf POST提交时的csrf验证 非必填
true
false
acceptedFiles 允许上传文件后缀(.jpg,.png) 默认为.zip
url 上传地址 {!! route('jiaoyu.upload',['param' => 'img', 'is_tmp'=>true]) !!} param:标识(以此标识从upload.php中获取配置信息)
is_tmp:是否使用临时目录(tmp),为false使用path目录
paramName 上传的属性名称 非必填,默认:file
chunkSize 分片大小 单位:MB,默认2MB
maxFiles 最多上传文件数 非必填,默认:1
maxFilesize 文件最大限制 非必填,单位:MB,默认10MB,
chunking 是否分片
forceChunking 上传时显示文件详情,不可修改
dictDefaultMessage 默认提示语 拖动文件至此处或点击上传
dictMaxFilesExceeded 超过限制上传数量提示语 您最多上传的文件数为 + maxFiles
dictResponseError 上传失败提示语 文件上传失败!
dictInvalidFileType 文件类型提示语 文件类型支持
dictFallbackMessage 兼容性提示语 浏览器不支持
dictFileTooBig 文件过大提示语 文件过大,最大支持 + maxFilesize + MB
dictRemoveFile 删除提示语 删除
addRemoveLinks 添加删除连接
previewsContainer 预览容器
previewTemplate 预览生成模板
thumbnailWidth 插件中,展示图宽度 默认:120
thumbnailHeight 插件中,展示图高度 默认:120

临时目录迁移到正式目录

如果上传的文件是放在临时目录tmp下,则在实际业务中,需要进行迁移文件到正式目录。可执行以下操作完成迁移操作。

删除文件


All versions of laravel-upload with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^6.20|^8.0
intervention/image Version ^2.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package githen/laravel-upload contains the following files

Loading the files please wait ....