Giter Site home page Giter Site logo

laravel-upload's Introduction

我是一个开源爱好者,做开发差不多已经 11 年了,现在居住在湖南长沙。之前大多数技术栈都是 WEB 相关,2020 后开始专注爬虫和 Web 3.0 ,之前服务过可口可乐、嘉实多、百胜中国,现在专注持续创业,保持终生学习。

  • 🔭 我的商业化指纹浏览器 产品
  • 🌱 我实际创业的方向: Web 3.0 和网络协议相关

我使用的技术栈

Frontend

React Bootstrap CSS3 HTML5 JavaScript Chart.js Vue.js Node.js jQuery Flutter MongoDB Dart

Backend

C++ JavaScript PHP MongoDB Node.js Nginx Python C Laravel MySQL Redis Dart Elastic Search InfluxDB Go

DevOps

AWS GCP Linux Git Bash Azure

联系我

微信: @yyyyyyyyyyyyyyy00001

wechat


Github Stats

Top Langs

指纹浏览器相关项目

laravel-upload's People

Contributors

qsnh avatar tyua07 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

laravel-upload's Issues

OSS功能能否建个抛出异常的Tag?

作者你好,我们在项目中使用OSS功能,但方法只返回了true和false,我们需要在失败的时候知道错误详情,是否能在上传文件的方法中直接将异常抛出呢?新建一个Tag给我们使用,不胜感激!

七牛云上传问题

在 Request 中获取的$file后, 调用 $file->store('/', 'qiniu') 无法成功上传文件,本地文件存储中,成功的话应该是返回存储路径。
去查看七牛云的空间,发现里面没有这个文件,也没有任何的 API 请求次数。

实例化时又拍云类找不到?

FatalThrowableError in UpyunAdapter.php line 66: Class 'Yangyifan\Upload\Upyun\UpYun' not found

/**
 * 获得Upyun上传对象
 *
 * @return UpYun
 * @author yangyifan <[email protected]>
 */
protected function getUpyun()
{
    if (!$this->upload) {
        $this->upload = new UpYun(
            $this->config['bucket'],//空间名称
            $this->config['username'],//用户名
            $this->config['password'],//密码
            $this->config['endpoint'],//线路
            $this->config['timeout']//超时时间
        );
    }
    return $this->upload;
}

laravel5.5 composer 不下来 ,求解决

[vagrant@localhost share]$ composer require "yangyifan/upload:v0.2"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for yangyifan/upload v0.2 -> satisfiable by yangyifan/upload[v0.2].
- Conclusion: don't install qiniu/php-sdk v7.2.2
- yangyifan/upload v0.2 requires qiniu/php-sdk v7.0.* -> satisfiable by qiniu/php-sdk[v7.0.0, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7, v7.0.8].
- Can only install one of: qiniu/php-sdk[v7.0.0, v7.2.2].
- Can only install one of: qiniu/php-sdk[v7.0.2, v7.2.2].
- Can only install one of: qiniu/php-sdk[v7.0.3, v7.2.2].
- Can only install one of: qiniu/php-sdk[v7.0.4, v7.2.2].
- Can only install one of: qiniu/php-sdk[v7.0.5, v7.2.2].
- Can only install one of: qiniu/php-sdk[v7.0.6, v7.2.2].
- Can only install one of: qiniu/php-sdk[v7.0.7, v7.2.2].
- Can only install one of: qiniu/php-sdk[v7.0.8, v7.2.2].
- Installation request for qiniu/php-sdk (locked at v7.2.2) -> satisfiable by qiniu/php-sdk[v7.2.2].

Installation failed, reverting ./composer.json to its original content.

支持 Laravel 7

  Problem 1
    - yangyifan/upload v0.2 requires yangyifan/library-helper v0.1 -> satisfiable by yangyifan/library-helper[v0.1].
    - Installation request for yangyifan/upload v0.2 -> satisfiable by yangyifan/upload[v0.2].
    - Conclusion: remove monolog/monolog 2.0.2
    - Conclusion: don't install monolog/monolog 2.0.2
    - yangyifan/library-helper v0.1 requires monolog/monolog ^1.21 -> satisfiable by monolog/monolog[1.21.0, 1.22.0, 1.22.1, 1.23.0, 1.24.0, 1.25.0, 1.25.1, 1.25.2, 1.25.3, 1.x-dev].
    - Can only install one of: monolog/monolog[1.21.0, 2.0.2].
    - Can only install one of: monolog/monolog[1.22.0, 2.0.2].
    - Can only install one of: monolog/monolog[1.22.1, 2.0.2].
    - Can only install one of: monolog/monolog[1.23.0, 2.0.2].
    - Can only install one of: monolog/monolog[1.24.0, 2.0.2].
    - Can only install one of: monolog/monolog[1.25.0, 2.0.2].
    - Can only install one of: monolog/monolog[1.25.1, 2.0.2].
    - Can only install one of: monolog/monolog[1.25.2, 2.0.2].
    - Can only install one of: monolog/monolog[1.25.3, 2.0.2].
    - Can only install one of: monolog/monolog[1.x-dev, 2.0.2].
    - Installation request for monolog/monolog (locked at 2.0.2) -> satisfiable by monolog/monolog[2.0.2].

❤️

laravel5.2 composer无法下载upload的问题(后面使用的人请注意)

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for yangyifan/upload v0.1 -> satisfiable by yangyifan/upload[v0.1].
- Conclusion: remove qiniu/php-sdk v7.1.3
- Conclusion: don't install qiniu/php-sdk v7.1.3
- yangyifan/upload v0.1 requires qiniu/php-sdk v7.0.* -> satisfiable by qiniu/php-sdk[v7.0.0, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7, v7.0.8].
- Can only install one of: qiniu/php-sdk[v7.0.0, v7.1.3].
- Can only install one of: qiniu/php-sdk[v7.0.2, v7.1.3].
- Can only install one of: qiniu/php-sdk[v7.0.3, v7.1.3].
- Can only install one of: qiniu/php-sdk[v7.0.4, v7.1.3].
- Can only install one of: qiniu/php-sdk[v7.0.5, v7.1.3].
- Can only install one of: qiniu/php-sdk[v7.0.6, v7.1.3].
- Can only install one of: qiniu/php-sdk[v7.0.7, v7.1.3].
- Can only install one of: qiniu/php-sdk[v7.0.8, v7.1.3].
- Installation request for qiniu/php-sdk (locked at v7.1.3) -> satisfiable by qiniu/php-sdk[v7.1.3].

Installation failed, reverting ./composer.json to its original content.

如果出现上面部分下载的信息,解决办法,直接修改composer.json,手动加入"yangyifan/upload":"v0.1",然后再composer update 即可。

执行composer require "yangyifan/upload:dev-master"报错

你好,yangyifan,

框架版本:
"laravel/framework": "5.2.*",

执行下面命令:
composer require "yangyifan/upload:dev-master"

报错误信息:
Problem 1
- Can only install one of: qiniu/php-sdk[v7.0.4, v7.0.8].
- Can only install one of: qiniu/php-sdk[v7.0.8, v7.0.4].
- Can only install one of: qiniu/php-sdk[v7.0.4, v7.0.8].
- yangyifan/upload dev-master requires qiniu/php-sdk v7.0.4 -> satisfiable by qiniu/php-sdk[v7.0.4].
- Installation request for yangyifan/upload dev-master -> satisfiable by yangyifan/upload[dev-master].
- Installation request for qiniu/php-sdk (locked at v7.0.8, required as ^7.0.4) -> satisfiable by qiniu/php-sdk[v7.0.8].

如何处理这种问题,期待你的回复!

谢谢!
Jack.Wang

上传多文件的情况,该怎么处理呢?

请教一下。 我从input表单里取到了多个上传文件
$files = $request->file('img');

打印$files 的话是个数组

array:2 [▼
0 => UploadedFile {#489 }
1 => UploadedFile {#490 }
]
想获取到里面的每一个上传文件
用了foreach循环

foreach ($files as $file){
dd($file);
}
取不到所有上传文件。

腾讯云COS上传图片失败

图片的内容不能正常上传上去,但是文件却可以生成

上传的图片都是几B大小的

查看了下代码,发现在上传之前,文件的resource在最后一步丢了,
所以上传的都是空文件

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.