Comments (9)
我尝试改动了一下源代码后,发现可以秒传了。但我忘了修改哪些部分,然后又改乱了,还在坚持中。
from aetherupload-laravel.
好的,等我看看
from aetherupload-laravel.
from aetherupload-laravel.
你好,不好意思现在才回你,之前在虚拟机安装最新版php和laravel的时候遇到很多问题,刚刚才解决,然后我验证了一下秒传是没问题的。
无法秒传应该是因为laravel在某个版本中,把默认的redis驱动由predis换成了phpredis,所以现在你只要在.env文件中规定redis的驱动即REDIS_CLIENT=predis
就行了,其他什么都不用改,我已经验证过了,你试试。
from aetherupload-laravel.
至于你说的League\Flysystem版本的问题,我验证时没遇到这种报错,不能复现,似乎无法秒传跟这个版本问题无关,先这样吧,后续有什么问题你再提出。
from aetherupload-laravel.
好的,谢谢你!辛苦了, 我现在再试一下。有结果了我再回复您。
from aetherupload-laravel.
抱歉,还得打扰您。之前的提问很荣幸能收到您的回复。
我说一下我再次测试的结果 ,
我使用 composer create-project laravel/laravel testupdate --prefer-dist 创建LARAVEL项目,项目默认的是LARAVEL9,PHP的版本要求是8.1,
我把PREDIS装好,并在ENV中加上REDIS_CLIENT=predis
在aetherupload中也把 spark-md5.min.js 文件引入,其它相关的配置我也配置好了,
然后打开:http://www.domain.com/aetherupload,进行大文件上传,在浏览器的控制台中出现500的字样,查看网络中的响应则显示
"message": "Class \"League\\Flysystem\\Adapter\\AbstractAdapter\" not found",
"exception": "Error",
"file": "D:\\wwwroot\\php\\2022\\0331\\testbigdataup\\vendor\\peinhu\\aetherupload-laravel\\src\\RedisAdapter.php",
"line": 9,
在查看 League\Flysystem 项目时,发现存在其版本地1.0的时侯,才会有 Adapter 这个目录,版本2,3两个版本都删除了Adapter这个目录,后来我查到网上有人说 版本是有漏洞.
不启用秒传,则代码运行正常。
期待收到您的答复。万分感谢。
from aetherupload-laravel.
抱歉,还得打扰您。之前的提问很荣幸能收到您的回复。
我说一下我再次测试的结果 , 我使用 composer create-project laravel/laravel testupdate --prefer-dist 创建LARAVEL项目,项目默认的是LARAVEL9,PHP的版本要求是8.1, 我把PREDIS装好,并在ENV中加上REDIS_CLIENT=predis 在aetherupload中也把 spark-md5.min.js 文件引入,其它相关的配置我也配置好了, 然后打开:http://www.domain.com/aetherupload,进行大文件上传,在浏览器的控制台中出现500的字样,查看网络中的响应则显示
"message": "Class \"League\\Flysystem\\Adapter\\AbstractAdapter\" not found", "exception": "Error", "file": "D:\\wwwroot\\php\\2022\\0331\\testbigdataup\\vendor\\peinhu\\aetherupload-laravel\\src\\RedisAdapter.php", "line": 9, 在查看 League\Flysystem 项目时,发现存在其版本地1.0的时侯,才会有 Adapter 这个目录,版本2,3两个版本都删除了Adapter这个目录,后来我查到网上有人说 版本是有漏洞. 不启用秒传,则代码运行正常。 期待收到您的答复。万分感谢。
的确有这个问题:可以临时不用redis驱动,在配置项中:'header_storage_disk' => 'local', 把redis改为local来实现秒传
from aetherupload-laravel.
抱歉,还得打扰您。之前的提问很荣幸能收到您的回复。
我说一下我再次测试的结果 , 我使用 composer create-project laravel/laravel testupdate --prefer-dist 创建LARAVEL项目,项目默认的是LARAVEL9,PHP的版本要求是8.1, 我把PREDIS装好,并在ENV中加上REDIS_CLIENT=predis 在aetherupload中也把 spark-md5.min.js 文件引入,其它相关的配置我也配置好了, 然后打开:http://www.domain.com/aetherupload,进行大文件上传,在浏览器的控制台中出现500的字样,查看网络中的响应则显示"message": "Class \"League\\Flysystem\\Adapter\\AbstractAdapter\" not found", "exception": "Error", "file": "D:\\wwwroot\\php\\2022\\0331\\testbigdataup\\vendor\\peinhu\\aetherupload-laravel\\src\\RedisAdapter.php", "line": 9, 在查看 League\Flysystem 项目时,发现存在其版本地1.0的时侯,才会有 Adapter 这个目录,版本2,3两个版本都删除了Adapter这个目录,后来我查到网上有人说 版本是有漏洞. 不启用秒传,则代码运行正常。 期待收到您的答复。万分感谢。
的确有这个问题:可以临时不用redis驱动,在配置项中:'header_storage_disk' => 'local', 把redis改为local来实现秒传
感谢您的回复。如果改回LOCAL, 那一切就正常了,也不存在上面的错误,但应该不是秒传。
在LOCAL模式下,我试着从办公室往阿里云上传一个3个G的文件,基本上在30分钟左右就可以完成,所以我试一下秒传是什么样的,所以折腾了好一会,之前改动了一下源代码实现了秒传,但后来想完善一下代码,慢慢就改乱了。
from aetherupload-laravel.
Related Issues (20)
- 上传文件失败 HOT 3
- 请问,可以改上传目录吗? HOT 1
- 执行composer update之后安装成功 HOT 8
- 后缀名有时会变成*.part,有时候又是正常的 HOT 2
- 想问下针对于大文件hash计算慢,需要怎么做加快计算? HOT 3
- 大佬好,安装此扩展用于api接口上传,分片不能合并是什么原因? HOT 11
- 想问下关于UploadController里面的一个代码的问题 HOT 4
- 小胡牛逼! HOT 2
- 请问怎么更好的去掉web中间件 HOT 2
- 我想问下这个可以在thinkphp上用吗???
- 是否可以支持断点下载?
- 您好,请问您这个能结合VUE实现上传大文件的功能吗? HOT 3
- 你好,请问我上传文件之后点击访问链接nginx为什么直接报错404?下载链接正常 HOT 4
- 你好,在上传文件过程中出现 "写文件失败" 问题,是否需要某些配置支持? HOT 7
- 后续是否有计划支持七牛上传? HOT 2
- 上传tgz文件提示 错误:无效的文件类型 HOT 4
- nginx负载均衡采用了iphash,会一直报写文件失败 HOT 4
- 上传相同的文件,第一个文件上传正常,第二个相同的文件上传后会得到.part文件 HOT 5
- 你好,请问这个支持lumen框架吗 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aetherupload-laravel.