GithubHelp home page GithubHelp logo

linuxforphp / filebrowser Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 0.0 4.62 MB

FileBrowser is a free, open-source, self-hosted web application for managing files and folders.

License: Other

JavaScript 21.60% PHP 64.68% Vue 13.28% Shell 0.44%

filebrowser's People

Stargazers

 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

filebrowser's Issues

Config

How would I go about configuring the s3client to handle backblaze b2?

Bug report on documentation

Describe the bug

A wrong documentation is provided in:

/docs/installation.rst

In section Install on fresh Ubuntu 18.04 or Debian 10.3, the download address specified in the wget command is incorrect.

wget https://filebrowser.linuxforphp.com/files/filebrowser_latest.zip
unzip filebrowser_latest.zip && rm filebrowser_latest.zip

The domain seems to be .net (instead of .com) and no _latest file is available.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Follow the instructions
  3. wget reports an error

Expected behavior
wget should correctly find the resource specified

Environment (please complete the following information):

  • FileBrowser Version [e.g. 8.0.2]

Additional context
I solved the problem by manually changing the resource address and name, pointing to rev 8.0.2 explicitly.

wget https://filebrowser.linuxforphp.net/files/filebrowser-8.0.2.zip
unzip filebrowser-8.0.2.zip && rm filebrowser-8.0.2.zip

Though, no address seems to be available for a generic "latest" version package.

problems with installation

Hello,
thank you for developing such a needed tool, I am sure it will help a lot of people.

I was trying to setup filebrowsr, did exactly what was mentioned in the instructions. When start apache , and type the URL of the server, I get a blank page. I am running Rocky linux 8 with apache .

Is there any specific instructions setting up apache , except the DocumentRoot ? All I did - changed the DocumentRoot to /var/www/html/filebrowser/dist

Here is what my changes are in /etc/httpd/conf.d/ssl.conf file:

DocumentRoot "/var/www/html/filebrowser/dist"
ServerName 10.240.59.66:443

I am pretty sure I am doing something wrong here, not sure what though.

thanks.

Upload is broken in UploadController.php function upload

Describe the bug
When a file is chosen to be uploaded system trows the following exception and the file fails to upload:

PHP Fatal error: Uncaught Error: Call to a member function isValid() on array in /var/www/filebrowser/backend/Controllers/UploadController.php:71\nStack trace:\n#0 [internal function]: Filebrowser\Controllers\UploadController->upload()\n#1 /var/www/filebrowser/vendor/php-di/invoker/src/Invoker.php(82): call_user_func_array()\n#2 /var/www/filebrowser/vendor/php-di/php-di/src/Container.php(276): Invoker\Invoker->call()\n#3 /var/www/filebrowser/backend/Services/Router/Router.php(81): DI\Container->call()\n#4 /var/www/filebrowser/backend/App.php(34): Filebrowser\Services\Router\Router->init()\n#5 /var/www/filebrowser/dist/index.php(95): Filebrowser\App->__construct()\n#6 {main}\n thrown in /var/www/filebrowser/backend/Controllers/UploadController.php on line 71, referer: http://192.168.0.110/

It would appear in the upload function that $filename is extracted from $request->input but that is not used later on to identify the file name used to build $file. In playing with the system it appears that a forward slash is pre-pended on the file name and when isValid is called on that value,

Screen displays the filename with a pre-pended forwad slash as in "/1920x1080p24_Contrast_Main-1024x576.png" above a red bar.

isValid() fails with a file does not exist error, but I can't be sure about this. Too long since I've been playing with PHP.

Environment (please complete the following information):

  • FileBrowser Version - using filebrowser_latest pulled on 12/12/23
  • Server: Apache 2.4.57 on Debian Linux (Linux avtech 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux)
  • PHP Version PHP 8.2.7
  • Browser Chrome, also on Edge
  • Installed on a Raspberry Pi 4B (8GB) w/32GB SD Card to use as a portable SAN.

Additional context

Login logs

Hello,
I have been using filebrowser without trouble for a few weeks now, and everything works great, but I don't know where/how to find the logins logs.
Are they disabled by default ? Since there is no login event yet, I wanted to read the logs so that if someone connects I can execute custom commands.
How should I proceed ?

Upgrade to Flysystem v3

Just found this project, looks really interesting! (Currently we're stuck with elFinder)

Are you planning on upgrading to Flysystem v3 in the near future?

How to set storage path?

Hey there, I have been using the file browser cloud successfully for the last 3 months on my Raspberry Pi. Now my SD Card is out of space. So, I plugged and mounted an external SSD and put my all data in it. But now I want to the file browser cloud to point to my data stored in the SSD the mount point is - /mnt/Home_Drive
Please guide me through it. I already read the documentation thoroughly but can't figure out how to set the storage path.

Bug report

Describe the bug
Unable to upload any file

To Reproduce
Steps to reproduce the behavior:

  1. create a Dockerfile with the following content:

FROM ubuntu

ENV DEBIAN_FRONTEND=noninteractive

RUN apt update
RUN apt install -y wget zip unzip php apache2 libapache2-mod-php php-zip

WORKDIR /var/www/
RUN wget https://filebrowser.linuxforphp.net/files/filebrowser-8.0.2.zip
RUN unzip filebrowser-8.0.2.zip && rm filebrowser-8.0.2.zip

RUN chown -R www-data:www-data filebrowser/
RUN chmod -R 775 filebrowser/

RUN echo "
<VirtualHost *:80>\n
DocumentRoot /var/www/filebrowser/dist\n
\n
" >> /etc/apache2/sites-available/filebrowser.conf

RUN a2dissite 000-default.conf
RUN a2ensite filebrowser.conf

CMD service apache2 restart
&& tail -f /dev/null

  1. Build the docker image with:

docker build -t my-php-app .

  1. Run the image with:

docker run -it --rm --name my-running-app -p 4000:80 my-php-app

  1. With a browser, access the file browser at: http://localhost:4000, username: admin; password: admin123
  2. Click on "Add files" and try to upload a file
  3. A red line appears on the bottom, and no file is uploaded
    image
  4. looking at the log file inside the container, the following error is reported:

[2022-05-23 06:56:10] default.ALERT: Fatal Error (E_ERROR): Uncaught Error: Call to a member function isValid() on array in /var/www/filebrowser/backend/Controllers/UploadController.php:71 Stack trace: #0 [internal function]: Filebrowser\Controllers\UploadController->upload() #1 /var/www/filebrowser/vendor/php-di/invoker/src/Invoker.php(82): call_user_func_array() #2 /var/www/filebrowser/vendor/php-di/php-di/src/Container.php(276): Invoker\Invoker->call() #3 /var/www/filebrowser/backend/Services/Router/Router.php(81): DI\Container->call() #4 /var/www/filebrowser/backend/App.php(34): Filebrowser\Services\Router\Router->init() #5 /var/www/filebrowser/dist/index.php(95): Filebrowser\App->__construct() #6 {main} thrown {"code":1,"message":"Uncaught Error: Call to a member function isValid() on array in /var/www/filebrowser/backend/Controllers/UploadController.php:71\nStack trace:\n#0 [internal function]: Filebrowser\Controllers\UploadController->upload()\n#1 /var/www/filebrowser/vendor/php-di/invoker/src/Invoker.php(82): call_user_func_array()\n#2 /var/www/filebrowser/vendor/php-di/php-di/src/Container.php(276): Invoker\Invoker->call()\n#3 /var/www/filebrowser/backend/Services/Router/Router.php(81): DI\Container->call()\n#4 /var/www/filebrowser/backend/App.php(34): Filebrowser\Services\Router\Router->init()\n#5 /var/www/filebrowser/dist/index.php(95): Filebrowser\App->__construct()\n#6 {main}\n thrown","file":"/var/www/filebrowser/backend/Controllers/UploadController.php","line":71,"trace":null} []

Expected behavior
Selected file should be uploaded.

Screenshots
See above.

Logs
excerpted from container's file /private/logs/app.log:

[2022-05-23 06:56:10] default.ALERT: Fatal Error (E_ERROR): Uncaught Error: Call to a member function isValid() on array in /var/www/filebrowser/backend/Controllers/UploadController.php:71 Stack trace: #0 [internal function]: Filebrowser\Controllers\UploadController->upload() #1 /var/www/filebrowser/vendor/php-di/invoker/src/Invoker.php(82): call_user_func_array() #2 /var/www/filebrowser/vendor/php-di/php-di/src/Container.php(276): Invoker\Invoker->call() #3 /var/www/filebrowser/backend/Services/Router/Router.php(81): DI\Container->call() #4 /var/www/filebrowser/backend/App.php(34): Filebrowser\Services\Router\Router->init() #5 /var/www/filebrowser/dist/index.php(95): Filebrowser\App->__construct() #6 {main} thrown {"code":1,"message":"Uncaught Error: Call to a member function isValid() on array in /var/www/filebrowser/backend/Controllers/UploadController.php:71\nStack trace:\n#0 [internal function]: Filebrowser\Controllers\UploadController->upload()\n#1 /var/www/filebrowser/vendor/php-di/invoker/src/Invoker.php(82): call_user_func_array()\n#2 /var/www/filebrowser/vendor/php-di/php-di/src/Container.php(276): Invoker\Invoker->call()\n#3 /var/www/filebrowser/backend/Services/Router/Router.php(81): DI\Container->call()\n#4 /var/www/filebrowser/backend/App.php(34): Filebrowser\Services\Router\Router->init()\n#5 /var/www/filebrowser/dist/index.php(95): Filebrowser\App->__construct()\n#6 {main}\n thrown","file":"/var/www/filebrowser/backend/Controllers/UploadController.php","line":71,"trace":null} []

Environment (please complete the following information):

  • FileBrowser Version 8.0.2
  • Server: Ubuntu 22.04
  • PHP Version PHP 8.1.2 (cli) (built: Apr 7 2022 17:46:26) (NTS)
  • Browser Chrome

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.