Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2023-03-02 10:41:56

miles
Member
From: Plymouth
Registered: 2008-05-22
Posts: 78
Website

Increase image upload from 40

Hello TXP

How can I increase the 40 upload limit on the images tab?

Offline

#2 2023-03-02 12:03:11

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,492
Website GitHub

Re: Increase image upload from 40

I didn’t realize there was a limit? You mean the number of files you can upload in one go? That might be system/connection dependent. Or the total size of uploads? Must admit I’ve never tried uploading more than a small handful.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#3 2023-03-02 12:07:28

miles
Member
From: Plymouth
Registered: 2008-05-22
Posts: 78
Website

Re: Increase image upload from 40

Hi Mate,

Yeah when I try to upload more than 40 it only uploads 40. It’s for a photographers website and they upload around 50-100 in one go. Do I need to edit a php.ini file or something do you think?

Offline

#4 2023-03-02 12:30:57

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,492
Website GitHub

Re: Increase image upload from 40

Maybe. It might be some limit on the maximum payload size. But I thought the images were uploaded in the background via Ajax, one by one. Hmmm. Maybe more testing is required here to see if it’s system dependent or a Textpattern limit.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#5 2023-03-02 12:39:03

etc
Developer
Registered: 2010-11-11
Posts: 5,687
Website GitHub

Re: Increase image upload from 40

I’ve just uploaded 51 large images without any problem on localhost.

Offline

#6 2023-03-02 13:12:57

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,767
GitHub

Re: Increase image upload from 40

I just did 250 × ~8MB JPGs on a web-side 4.8.8 instance, no drama.

Edit: well, the green confirmation dialog is so tall that I can’t see the × to close it…but I can live with that.

Gonna see if 1,000 2,000 works…

Edit: confirmed working with 2,000 images uploaded. Admin-side was semi-DOS’d after I deleted some older images during the second upload session…but I can live with that.

Last edited by gaekwad (2023-03-02 13:25:57)

Offline

#7 2023-03-02 13:48:31

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,492
Website GitHub

Re: Increase image upload from 40

Thanks for testing, guys. Okay so looks like it’s a system thing on miles’ end. Any thoughts on what it might be?


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#8 2023-03-02 13:49:07

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,492
Website GitHub

Re: Increase image upload from 40

gaekwad wrote #334856:

well, the green confirmation dialog is so tall that I can’t see the × to close it…but I can live with that.

Hehe, all hail the Escape key ;)


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#9 2023-03-02 15:05:55

lindabb
Member
Registered: 2023-02-17
Posts: 132

Re: Increase image upload from 40

(if windows) maybe you need to check file name length, long file name less number of files, short file names many more.

Offline

#10 2023-03-02 15:11:51

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,767
GitHub

Re: Increase image upload from 40

Bloke wrote #334860:

Hehe, all hail the Escape key ;)

All this new fangled technology, innit…

Offline

#11 2023-03-02 17:37:37

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,392
Website GitHub Mastodon Twitter

Re: Increase image upload from 40

gaekwad wrote #334856:

I just did 250 × ~8MB JPGs on a web-side 4.8.8 instance, no drama.

Edit: well, the green confirmation dialog is so tall that I can’t see the × to close it…but I can live with that.

Maybe we should move the x to the bottom? The average user may not know of the escape key.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#12 2023-03-02 17:52:48

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,767
GitHub

Re: Increase image upload from 40

colak wrote #334871:

The average user may not know of the escape key.

The average user won’t be uploading that many images…

Offline

#13 2023-03-03 02:42:09

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,667
Website

Re: Increase image upload from 40

colak wrote #334871:

Maybe we should move the x to the bottom? The average user may not know of the escape key.

Or a combination of giving the message pane a max-height, and pinning the close button at a fixed point? Roughly:

.messagepane > span {
  overflow: auto;
  max-heigh: 80vh;
}

.close .ui-icon {
  top: min(50% 20vh);
}

The message pane on Hive might need to some extra massaging.

Demo with Sandspace. I made the messagepane (much) shorter for demo purposes.

Last edited by phiw13 (2023-03-03 02:43:59)


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

Offline

#14 2023-03-03 10:36:00

miles
Member
From: Plymouth
Registered: 2008-05-22
Posts: 78
Website

Re: Increase image upload from 40

Thanks for all your replies and testing. Very odd situation. Tried many times but it only ever uploads a maximum of 42. I have tried increasing post_max_size, upload_max_filesize and max_execution_time in the php settings but made no difference. I used to use the droploader plugin and worked fine but since I upgraded TXP to the latest version and change servers I can only get 42 to upload!

Offline

#15 2023-03-04 01:00:02

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,667
Website

Re: Increase image upload from 40

Have you checked if the settings in Admin > Preferences >admin sub tab -> “Maximum file size of uploads (in bytes)”. It should reflect what php.ini tells, IIRC. – and that only applies to the individual object(image), I think.

Other thought: do you use any image related plugin that might interfere here?


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

Offline

Board footer

Powered by FluxBB