No Code Attached Yet
avatar PhilETaylor
PhilETaylor
8 May 2021

Steps to reproduce the issue

THINK LIKE A USER NOT A DEVELOPER

System -> Site Templates -> Cassiopeia Details and Files -> New File

Select the images folder on the left.

click Choose File, choose an image from your computer, click upload.

Screenshot 2021-05-08 at 20 04 16

Expected result

THINK LIKE A USER NOT A DEVELOPER

Expect that the file is uploaded to the images folder with the same filename and extension as the original file.

THINK LIKE A USER NOT A DEVELOPER

Actual result

THINK LIKE A USER NOT A DEVELOPER

Screenshot 2021-05-08 at 20 05 10

System information (as much as possible)

THINK LIKE A USER NOT A DEVELOPER

Additional comments

THINK LIKE A USER NOT A DEVELOPER

avatar PhilETaylor PhilETaylor - open - 8 May 2021
avatar joomla-cms-bot joomla-cms-bot - change - 8 May 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 May 2021
avatar brianteeman
brianteeman - comment - 8 May 2021

not sure what you are asking for here. I'm a user not a mind reader

avatar PhilETaylor
PhilETaylor - comment - 8 May 2021

Then read what I wrote. I spelled it out. It's impossible to upload images when the expectation set by "new file" is that you should be able to. Nothing says that you can't.

avatar PhilETaylor PhilETaylor - change - 8 May 2021
Title
[4] Template image upload
[4] Template image upload not possible
avatar PhilETaylor PhilETaylor - edited - 8 May 2021
avatar brianteeman
brianteeman - comment - 8 May 2021

Nothing says that you can't.

Because you should be able. Its a bug.

avatar brianteeman
brianteeman - comment - 8 May 2021

The way that you wrote it suggested that you want a better error message to say that you cant upload an image.

The problem is not the error message. The problem is a bug in joomla preventing you from uploading

avatar brianteeman
brianteeman - comment - 9 May 2021

And its not actually a bug.
The problem comes from when the webp support was added. This required a data change in the db. You will not get those changes applied unless you do an upgrade or clean install. The database structure fix cant change data. OR open the template options and press save. Any of those will resolve the "bug" and you can happily upload images.

avatar PhilETaylor PhilETaylor - close - 9 May 2021
avatar PhilETaylor
PhilETaylor - comment - 9 May 2021

I tested that theory - I reinstalled from scratch... and now I still cannot upload png files (screenshots)

However, the message is complaining about "not being a valid file name", although this is a valid file name, Im guessing Joomla doesn't like the multiple periods in the file name.

Screenshot 2021-05-09 at 11.32.29.png

I can upload test.png

avatar PhilETaylor PhilETaylor - change - 9 May 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-05-09 10:37:40
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - change - 9 May 2021
Status Closed New
Closed_Date 2021-05-09 10:37:40
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - reopen - 9 May 2021
avatar PhilETaylor
PhilETaylor - comment - 9 May 2021

Reopening as Screenshot 2021-05-09 at 11.32.29.png file can be uploaded with com_media, so it should be legal and valid to upload it using template manager too.

avatar brianteeman
brianteeman - comment - 9 May 2021

You're right. I forgot about the double dot. That is a restriction put in place several years ago for security

avatar PhilETaylor
PhilETaylor - comment - 9 May 2021

The file uploads perfectly well in the Media Manager, and so should be allowed here too.

avatar brianteeman
brianteeman - comment - 9 May 2021

Or blocked in both if the security issue is still valid

avatar brianteeman
brianteeman - comment - 9 May 2021

Related issue #30908

avatar brianteeman
brianteeman - comment - 13 May 2021

In J3 you do get the correct error message
image

avatar PhilETaylor
PhilETaylor - comment - 13 May 2021

That is the same error message as joomla 4

avatar PhilETaylor PhilETaylor - change - 7 Mar 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-03-07 18:37:29
Closed_By PhilETaylor
Labels Added: No Code Attached Yet
Removed: ?
avatar PhilETaylor PhilETaylor - close - 7 Mar 2022

Add a Comment

Login with GitHub to post a comment