laravel-admin-extensions / large-file-upload Goto Github PK
View Code? Open in Web Editor NEWAn Extension For Laravel-Admin
License: MIT License
An Extension For Laravel-Admin
License: MIT License
配置文件,上传根目录名位于 storage/app/ 下,如何修改为public/uploads目录?或者使用储存引擎。
laravel 5.5
encore/laravel-admin 1.7.5,
显示的时候是需要自己手动替换字符吗?
peinhu/AetherUpload-Laravel已经更新大版本到2.0了,希望升级一下引用版本
将"peinhu/aetherupload-laravel": "^2.0",升级了,上传文件报错。
setGroup方法不存在
\Encore\LargeFileUpload\LargeFileField::class 文件下
$('#{$name}-resource').change(function(){
aetherupload('{$name}', this).setGroup('{$this->group}').setSavedPathField('#{$name}-savedpath').setPreprocessRoute('/aetherupload/preprocess').setUploadingRoute('/aetherupload/uploading').setLaxMode(false).success().upload('{$name}')
}); 这里调用的方法不存在;
public/vender/laravel-admin-ext/large-file-upload/js/aetherupload.admin.js 下未找到对应的方法
目前只能保存到本地再上传到OSS!能否跳过本地储存,直接上传到OSS?
有没有例子,README 里提到的文档在哪儿?多谢!
编辑的时候显示未显示已上传的文件 建议修复
file_201910_87785a755a0ebafe18015f5d68b46f7c.jpg
改成: file/2019/8875 从哪个地方改啊.
修改配置文件中的UPLOAD_PATH,上传提示"创建文件失败",请问这个配置该怎么修改
large-file-upload/src/LargeFileField.php
Lines 15 to 22 in e3e5cd7
I think, generate html from view is better
这个扩展很好用,但是有一些不足之处,建议模板渲染保留laravel-admin field 模板属性,下午需要对
字段添加 form-group 类选择器,发现怎么也加不上去,发现是因为没有兼容官方的view 属性问题,希望加上
在 view里 做如下修改
<div class="{{ $viewClass['form-group'] }} {!! !$errors->has($label) ?: 'has-error' !!}" >
请教学长,我遇到的问题是。
aetherupload/preprocess 方法时,停住了。
error | "错误:创建子文件夹失败" |
---|---|
chunkSize | 1000000 |
groupSubDir | "202007" |
resourceTempBaseName | "1595717260205833" |
resourceExt | "mp4" |
savedPath | "" |
--我另有一个项目,类似的,�就可以用,文件都复制一样的。
请问我应该如何调试呢?非常谢谢!
主要是看不懂源码,可以有偿请学长讲解一下这个扩展吗,这样方便后续使用。
如题如何上传至七牛云等储存服务器,调用插件后文件存储了在本地服务器,想直接上传至七牛应该怎么配置?
Error: upload fail,按照步骤安装好之后,上传文件时报这个错误,怎么调试解决?
问题如标题,安装此包后,web.php里的路由全部报404
Lines 21 to 24 in 861fb27
I suggest to put it into service provider's boot
public function boot()
Admin::booting(function () {
\Encore\Admin\Form::extend('largefile', \Encore\LargeFileUpload\LargeFileField::class);
});
}
$form->largefile('video_url', '视频')->rules('bail|mimes:mp4,avi,mpeg,quicktime|max:50000')->group('videos');
把方法放到hasMany的方法中之后方法使用不成功
我第一次上传了一个test.txt文件上传成功了,后面又上传一个test1.txt文件且内容不相同,上传成功了但是找不到这个文件,我在本地测试发现这两个文件返回了同一个md5_file()的hash值,最后被你的程序识别成了同一个文件,程序如下
public function renameTempFile()
{
$savedFileHash = $this->generateSavedFileHash($this->uploadPartialFile);
if ( RedisHandler::hashExists($savedFileHash) ) {
$this->savedPath = RedisHandler::getFilePathByHash($savedFileHash);
} else {
$this->savedPath = ConfigMapper::get('FILE_DIR') . DIRECTORY_SEPARATOR . ConfigMapper::get('FILE_SUB_DIR') . DIRECTORY_SEPARATOR . $savedFileHash . '.' . $this->uploadExt;
if ( ! @rename($this->uploadPartialFile, ConfigMapper::get('UPLOAD_PATH') . DIRECTORY_SEPARATOR . $this->savedPath) ) {
return false;
}
}
return $this->savedPath;
}
查看 F12 ,提示
http://localhost/aetherupload/preprocess 404 (Not Found)
我本地项目的路径是 http://localhost/song/public/admin
看遍 aetherupload.php 能试的填写路径的地方都试了,还是不行。
求大神告知!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.