Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2008
    Location
    Toronto
    Posts
    347
    Plugin Contributions
    0

    Default Maximum number of characters in an image filename??

    Hello Everyone,

    Does Zen Cart have a maximum number of characters allowed in a product image file name??

    We're having some issues replacing product images and the only noticeable difference is the length of the filename.

    Any help is appreciated.
    Thanks.

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,262
    Plugin Contributions
    3

    Default Re: Maximum number of characters in an image filename??

    Quote Originally Posted by kcb410 View Post
    Hello Everyone,

    Does Zen Cart have a maximum number of characters allowed in a product image file name??

    We're having some issues replacing product images and the only noticeable difference is the length of the filename.

    Any help is appreciated.
    Thanks.
    Yes... the field is limited to (I think) 32 characters in the database.

    You can increase this by editing the VARCHAR field for images in the products table, via PHPMYADMIN.

    I usually increase mine to 64 characters. You don't want it too big... 64 characters is usually enough.

    As with all edits to a database - BACKUP first.
    19 years a Zencart User

  3. #3
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Maximum number of characters in an image filename??

    BUT if you're trying to increase it so you can replace the filenames with URLs then be aware that it's not designed to use URLs for image filenames. It's expecting files on *your* server, not someone else's.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Dec 2008
    Location
    Toronto
    Posts
    347
    Plugin Contributions
    0

    Default Re: Maximum number of characters in an image filename??

    Thanks Schoolboy & Dr Byte.

    We're just uploading new product images with descriptive file names like... product-id-model-number-actual-product-description.jpg

  5. #5
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Maximum number of characters in an image filename??

    Good idea ;)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Product Title Characters Maximum
    By Adambob in forum General Questions
    Replies: 1
    Last Post: 28 Mar 2011, 10:06 PM
  2. Option value maximum # of characters
    By ouxly40 in forum General Questions
    Replies: 2
    Last Post: 19 Apr 2008, 01:03 PM
  3. Product Database filename field 64 characters
    By antique in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 7 Apr 2008, 03:05 AM
  4. Maximum number of characters in comment box?
    By jurjenruben in forum General Questions
    Replies: 2
    Last Post: 4 Apr 2008, 03:09 PM
  5. problem with illegal characters in image upload filename
    By rosenblum68 in forum Bug Reports
    Replies: 0
    Last Post: 9 Nov 2007, 05:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR