Git Product home page Git Product logo

Comments (16)

fraterblack avatar fraterblack commented on July 28, 2024 1

I've the same problem in Laravel 5.1

from laravel-filemanager.

kamiyar avatar kamiyar commented on July 28, 2024 1

hi again
ok guys,
@fraterblack , @premier213
With your permission @g0110280
i will find the upload bug and fixed it
ok, how to fix this:

  1. open vendor\unisharp\laravel-filemanager\src\controllers\UploadController.php
  2. go to : function uploadValidator()
  3. chane : line 77 and 80 if(!$file) to if(empty($file))
    if (!$file) { throw new \Exception(Lang::get('laravel-filemanager::lfm.error-file-empty')); } if (!$file instanceof UploadedFile) { throw new \Exception(Lang::get('laravel-filemanager::lfm.error-instance')); }
    to :
    if (empty($file)) { throw new \Exception(Lang::get('laravel-filemanager::lfm.error-file-empty')); } if (empty($file) instanceof UploadedFile) { throw new \Exception(Lang::get('laravel-filemanager::lfm.error-instance')); }

this is work for me

from laravel-filemanager.

streamtw avatar streamtw commented on July 28, 2024

@fraterblack, @premier213
Thanks for spotting this bug and show me the solution.
However I can't reproduce this error.
What are your's PHP version?

from laravel-filemanager.

kamiyar avatar kamiyar commented on July 28, 2024

your welcome :)
php version : 5.6.3

from laravel-filemanager.

streamtw avatar streamtw commented on July 28, 2024

@kamiyar :
Fixed codes as you recommand.
Could you update to dev-master(see readme.md) and see if the problem are solved?

from laravel-filemanager.

kamiyar avatar kamiyar commented on July 28, 2024

@g0110280
first, thanks
updated to dev-master and republished everythinks
but i get this error
asd

from laravel-filemanager.

premier213 avatar premier213 commented on July 28, 2024

put 'middleware' => ['web','auth'],

from laravel-filemanager.

kamiyar avatar kamiyar commented on July 28, 2024

still not work!

from laravel-filemanager.

premier213 avatar premier213 commented on July 28, 2024

agha @kamiyar this problem for persian language?

from laravel-filemanager.

kamiyar avatar kamiyar commented on July 28, 2024

Hi :) @premier213
You don't have this problem?!

from laravel-filemanager.

premier213 avatar premier213 commented on July 28, 2024

convert file to UTF-8 @kamiyar

from laravel-filemanager.

streamtw avatar streamtw commented on July 28, 2024

@kamiyar
Did you login?

from laravel-filemanager.

kamiyar avatar kamiyar commented on July 28, 2024

@g0110280 yes i'm login

from laravel-filemanager.

kamiyar avatar kamiyar commented on July 28, 2024

@g0110280
@premier213
ok problem solved. issue is in my router.
everythinks looks good
thank you @g0110280

from laravel-filemanager.

streamtw avatar streamtw commented on July 28, 2024

Well, that is weird.
I just create a new Laravel 5.2 project, encountering "NotFountHttpException" like you.
Then I set middlewares as @premier213 mentioned in config/lfm.php.
And the problem solved after I logged in.

from laravel-filemanager.

streamtw avatar streamtw commented on July 28, 2024

OK @kamiyar you're welcome.
Thanks @premier213 .

from laravel-filemanager.

Related Issues (20)

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.