Comments (11)
场景是网页表单上传,
后端还是要搬出来,因为要登录才能上传
这个支持自定义中间件的,可以在自定义中间件里面验证是否登录。
from aetherupload-laravel.
本插件是全自动完成的,不用写后端调用代码。你再仔细看下那个示例,上传完直接能返回文件保存地址,然后你表单点提交后存到数据库就行了,后端只需要写接收文件保存地址的代码。
from aetherupload-laravel.
因为接口开发某些原因,我需要直接引用您的preprocess()和saveChunk()方法,参数正确会导致合并出问题不
from aetherupload-laravel.
插件预设使用场景是网页表单上传,如果是API使用的话,客户端需要有和前端js相同的实现,两个路由(/aetherupload/preprocess,/aetherupload/uploading)提交的参数要相同,可以自己参考https://github.com/peinhu/AetherUpload-Laravel/blob/master/assets/aetherupload-core.js的参数和逻辑来写。
from aetherupload-laravel.
如果参数、前端逻辑一样,应该不会有问题,等我有空试试。
from aetherupload-laravel.
好的我这里自查一下感谢回复!!
from aetherupload-laravel.
你前端其实也可以用我的后端逻辑?只要请求的路由是一样的,返回的结果也一样,只是你客户端的逻辑要自己写了。
from aetherupload-laravel.
后端逻辑其实我都已经写好了,不需要使用者自己写或者主动调用的,API的话,关键还是写前端的逻辑,客户端是安卓IOS?
from aetherupload-laravel.
嗯呢 目前是web端 应该是参数的问题吧
from aetherupload-laravel.
请求路由 /aetherupload/preprocess
resource_name: example.zip
resource_size: 3509548
resource_hash: 508251fad2a81e3ec845800a4a440e51
locale: zh
group: file
请求路由 /aetherupload/uploading
resource_chunk: (二进制)
resource_ext: zip
chunk_total: 4
chunk_index: 1
resource_temp_basename: 1660012008535230
group: file
group_subdir: 202208
locale: zh
resource_hash: 508251fad2a81e3ec845800a4a440e51
参数按这个传就行了
from aetherupload-laravel.
场景是网页表单上传,
后端还是要搬出来,因为要登录才能上传
from aetherupload-laravel.
Related Issues (20)
- 上传文件失败 HOT 3
- 请问,可以改上传目录吗? HOT 1
- 执行composer update之后安装成功 HOT 8
- 在LARAVEL9版本中存在无法使用秒传的问题。 HOT 9
- 后缀名有时会变成*.part,有时候又是正常的 HOT 2
- 想问下针对于大文件hash计算慢,需要怎么做加快计算? HOT 3
- 想问下关于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.