Git Product home page Git Product logo

media-manager's Introduction

Media manager for laravel-admin

StyleCI Packagist Total Downloads Pull request welcome

Media manager for local disk.

Documentation | 中文文档

Screenshot

wx20170809-170104

Installation

// For laravel-admin 1.x
composer require laravel-admin-ext/media-manager:1.x -vvv

// For laravel-admin 2.x
composer require laravel-admin-ext/media-manager:2.x -vvv

php artisan admin:import media-manager

Add a disk config in config/admin.php:

    'extensions' => [

        'media-manager' => [

            // Select a local disk that you configured in `config/filesystem.php`
            'disk' => 'public',
            'allowed_ext' => 'jpg,jpeg,png,pdf,doc,docx,zip'
        ],
    ],

Open http://localhost/admin/media.

License

Licensed under The MIT License (MIT).

media-manager's People

Contributors

adizbek avatar jxlwqq avatar uacode avatar yomag84 avatar z-song 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

media-manager's Issues

laravel 5.6 不能安装

Dependency resolution completed in 0.006 seconds
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Can only install one of: laravel/framework[v5.6.17, 5.5.x-dev].
    - Can only install one of: laravel/framework[5.5.x-dev, v5.6.17].
    - Can only install one of: laravel/framework[5.5.x-dev, v5.6.17].
    - laravel-admin-ext/media-manager v1.0 requires laravel/framework 5.5.* -> satisfiable by laravel/framework[5.5.x-dev].
    - Installation request for laravel-admin-ext/media-manager ^1.0 -> satisfiable by laravel-admin-ext/media-manager[v1.0].
    - Installation request for laravel/framework (locked at v5.6.17, required as 5.6.*) -> satisfiable by laravel/framework[v5.6.17].

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

php version 7.1
laravel 5.6 安装失败,

i can not download files (Files are opend as binary data)

I uploaded some images, and it are seems good work.
But I can not download these files from lists on meida-manager .
So the issue is opened as binary data directly.

please tell me How do I download my files...

Im using laravel 5.5

screenshot 2018-01-24 14 17 04

screenshot 2018-01-24 14 19 42

select image or file from media manager

hi . is it possible to select file by media manager ?
I did not find a way to do this . while the reason for using media manager is this .
if don't can i request a pull for adding this feature ?

Filename Issue

Hi,

If i upload a different file as same filename means that replacing the existing one. so i have lost one file, so kindly rename the file in and upload it.

View .png files

View .png files through the dashboard instead of downloading

Can't delete a file

Hi, trying to delete a file (clicking on the trashcan on the side or on the record.
I don't see any network activity when clicking the delete button.

Config:

filesystems.php


 'public' => [
            'driver' => 'local',
            'root' => storage_path('app/'),
            'url' => env('APP_URL') . '/storage',    // set url
            'visibility' => 'public',
        ],
] 

admin.php

'extensions' => [

       'media-manager' => [
           'disk' => 'public'   // Points to the disk set in config/filesystem.php
       ],
   ]

Will appreciate any help or suggestion,

Thanks a lot!

pagination

hi
if there is a lot of item can we have pagination in media manager?
regards

/media/download?file= 允许下载其他目录的文件

在默认的 'disk' => 'public'下:
测试案例: /admin/media/download?file=../../../../../../../etc/passwd
效果:会下载passwd的配置文件
/admin/media/download?file=../../../.env
效果:会下载env文件
虽然可以允许只有超管访问当前目录,但是感觉有点危险

Uploading images with cyrillic names

Using windows as client and server.
When I'm uploading images with cyrillic names - they names changes dramatically:
"200px-Закон_Ома.jpg" =>"200px-Закон_РћРјР°.jpg"
It's need to be presented not like CP1251, but UTF-8

采用HTTPS协议时 浏览器报错

在创建目录或者上传文件的时候chrome浏览器报错类似以下文案:

Mixed Content: The page at 'https://mydomain/admin/media' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://mydomain/admin/media/upload'. This request has been blocked; the content must be served over HTTPS.

大概原因如下:

在发送AJAX请求的时候浏览器阻止了从HTTPS向“非安全协议”HTTP地址的请求,所以简单的来说就是form表单的action属性的协议部分写错了,换成HTTPS协议即可,但是没有找到能够配置的地方。

建议添加协议配置项或者直接去掉协议头使用 //mydomain/admin/media/upload 这样路径作为action属性。

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.