Backend: go to content -> media, create new directory >test.png< (which makes no sense, but a customer of me did and caused the error)
Joomla 4.1.2 (current stable)
PHP 7.4
maybe a solution could be to check if current string is a directory or file; currently com_media treats directorys as file if name syntax matches to file name syntax and tries to get fileinfo for directory, thats why com_media crashes. before getting fileinfo, com_media should check if current string is file or not.
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
bug
|
Expected result
show message "can't create directory"
directory was not created
I think it should be created. Why not?
Of course, as long as
com_media keeps working
Directories are created for example xx.png, test.jpg.
These directories are only visible in my local installation (I am on win11), not online (via ftp).
As long as these directories exist, no directory tree is displayed - see screenshot
ReLater I agree; what I meant was the directory has been created although the message said it was not - what possibly is a bug. But youre right, there is no reason NOT to create a directory like this, so this message has to be removed.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-02-24 18:37:11 |
Closed_By | ⇒ | Quy |
Confirmed online PHP 8.0
On my localhost win11, php 8.1 I see that directories are gernerated for example xx.png, test.jpg.