Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-07-27 04:10:29

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Non-image files offered for upload during replace operation

Have noticed an inconsistency in 4.7.3 and 4.8.1.

When clicking “Choose Files” (i.e. to upload a new image) in the Image List tab, I’m offered only “image” file types.

When clicking “Choose File” (i.e. to replace an existing image) in the Image Edit tab, I’m offered all file types. An attempt to upload a non-image file type does fail however.

Perhaps a code tweak is in order?

Offline

#2 2020-07-27 07:17:48

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,162
Website

Re: Non-image files offered for upload during replace operation

An accept="image/*" attribute on the file-upload widget seems to be missing there :-(.

I had never noticed it, but then the folders where I upload images from only contain images, so…


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#3 2020-07-27 07:55:21

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,436
Website GitHub

Re: Non-image files offered for upload during replace operation

Good catch. Will fix. Thank you.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#4 2020-07-27 17:21:50

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,436
Website GitHub

Re: Non-image files offered for upload during replace operation

Fixed, thank you. And in the nick of time before 4.8.2 hits the streets. So if you have any more bugs you want to file, now’s the time to shout :)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#5 2020-07-27 22:27:32

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: Non-image files offered for upload during replace operation

Sorry

Offline

Board footer

Powered by FluxBB