icecoder / ICEcoder

Browser code editor awesomeness
http://icecoder.net
Other
1.41k stars 348 forks source link

can't upload file #984

Closed ngrcld closed 2 years ago

ngrcld commented 2 years ago

Can't upload file

PHP error from ICEcoders data/logs/error/error.log file at the time of the bug:

[17-Jul-2021 14:30:59 Europe/Berlin] PHP Fatal error:  Uncaught Error: Attempt to assign property "name" on null in /var/www/html/ICEcoder/classes/File.php:585
Stack trace:
#0 /var/www/html/ICEcoder/lib/file-control.php(283): ICEcoder\File->getUploadedDetails()
#1 {main}
  thrown in /var/www/html/ICEcoder/classes/File.php on line 585

To Reproduce Steps to reproduce the behavior:

  1. Right click on ROOT
  2. Upload File(s)
  3. Choose a file
  4. The browser shows "working..." and the error is printed in data/logs/error/error.log

Browser & Server (please complete the following information):

Additional context I have loginRequired disabled in ICEcoder/data/config-global.php

mattpass commented 2 years ago

Thanks for reporting this, I've fixed 2 issues related to this in commit https://github.com/icecoder/ICEcoder/commit/623ee10a8163b65484d132bc03c73441222e6cc6

Should now be working fine.