Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-03-18 18:45:22

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Limit of image file sizes?

I am unable to upload via the Upload Image panel certain images. An error of “No File Specified” appears along the red bar at bottom of screen..
The only variable that seems in common to all images that fail to upload is their file sizes >2gb. If i downsize to <2gb no problems.
Is this documented somewhere?
Also i cannot find any Preferences settings that limit file/image sizes.

Thanks


…. texted postive

Offline

#2 2015-03-18 18:59:45

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

Re: Limit of image file sizes?

Admin -> Prefs -> Advanced -> file_max_upload_size – in English it’s “Maximum file size of uploads (in bytes)”.

Try overriding upload_max_filesize and post_max_size in php ini. If you can’t change that, try this in .htaccess:

php_value upload_max_filesize x
php_value post_max_size x

…where x is the upper file size limit.

PS: 2GB file uploads? You Vancouver folks with your crazy-fast internet…

Last edited by gaekwad (2015-03-18 19:01:50)

Offline

#3 2015-03-18 23:36:44

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: Limit of image file sizes?

gaekwad wrote #289189:

Admin -> Prefs -> Advanced -> file_max_upload_size – in English it’s “Maximum file size of uploads (in bytes)”.

gee there it is… last night i couldn’t see that pref. …. must have been the Highland Park affecting my vision

PS: 2GB file uploads? You Vancouver folks with your crazy-fast internet…

i feel guilty now ;-) … I’ll reduce them to 1gb or <


…. texted postive

Offline

#4 2015-03-19 11:59:44

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

Re: Limit of image file sizes?

bici wrote #289191:

i feel guilty now ;-) … I’ll reduce them to 1gb or <

No need to feel guilty. If you’re routinely sending that much up to a website, perhaps investigate a secure FTP connection or other file upload method that doesn’t use PHP.

Offline

#5 2015-03-19 18:17:36

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: Limit of image file sizes?

I am hosted on Webfaction with good SFTP access.
Currently I was uploading images to my Localhost dev site.

For my gallery to be added to a category do we not HAVE to use the panel to upload images to the DB? I am under the impression that images go into the TxP database. It would be nice if we could bulk upload images and then assign them to the category.

But i should make the images lighter for visitors that have slower connections.


…. texted postive

Offline

#6 2015-03-19 19:49:05

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

Re: Limit of image file sizes?

bici wrote #289211:

It would be nice if we could bulk upload images and then assign them to the category.

The way Txp is set up, this is not as easy as it is on, say, the Files panel. The main reason is the ID scheme, which is great for ensuring uniqueness, but not so good for, well, pretty much everything else! It’s not impossible, but the steps involve:

  1. Uploading the image with a unique ID number into the images directory.
  2. Uploading a thumbnail (if applicable) with the same ID number and a ‘t’ to the same directory.
  3. Inserting a row in the DB for each image (via phpMyAdmin is probably simplest), ensuring the ID matches the one you uploaded, setting the image + thumbnail dimensions, category name, image name (if you wish), alt and optional caption.

Once the DB row exists, you can manage the picture from inside Txp.

But i should make the images lighter for visitors that have slower connections.

If you have images in excess of 1 gigabyte each, then even your desktop users will love you for making the pictures more web-friendly.


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

#7 2015-03-19 23:37:22

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: Limit of image file sizes?

Wow… that will come in handy for the future. I have pretty well finished uploading my images. And I have indeed kept them under 1gb and web-friendly . … i need al the love i can get.


…. texted postive

Offline

#8 2015-03-20 09:43:14

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

Re: Limit of image file sizes?

OK, I’ll bite – can you share (or send me) a link to one of your images that breaks the uploading? Thanks.

Offline

#9 2015-03-20 18:49:12

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: Limit of image file sizes?

gaekwad wrote #289227:

OK, I’ll bite – can you share (or send me) a link to one of your images that breaks the uploading? Thanks.

here is one that i had to reduce before it could be added / uploaded
http://bicilogic.com/big/IMG_17.JPG

after resizing them smaller i had no problems.


…. texted postive

Offline

#10 2015-03-20 20:19:45

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: Limit of image file sizes?

bici wrote #289213:

(…) And I have indeed kept them under 1gb and web-friendly (…).

What mean you with “gb”? I’ve never seen a photo with 1 GB.

Offline

#11 2015-03-20 21:05:18

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

Re: Limit of image file sizes?

bici wrote #289245:

here is one that i had to reduce before it could be added / uploaded
http://bicilogic.com/big/IMG_17.JPG

That comes out at 2.7MB here. Forgive me if this comes over as patronising, but you had a photo that was reportedly upwards of 2GB – that’s 2048MB – short of saving a multi-layered, uncompressed TIFF you’re not going to get anywhere near to a 2GB for a photo. Are you absolutely sure it was 2GB?

Offline

#12 2015-03-21 00:28:02

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: Limit of image file sizes?

GugUser wrote #289246:

What mean you with “gb”? I’ve never seen a photo with 1 GB.

sorry. i meant ( 1 or 2 MB )


…. texted postive

Offline

Board footer

Powered by FluxBB