Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2008
    Posts
    4
    Plugin Contributions
    0

    Default Product Database filename field 64 characters

    Hello All,

    Database Question.
    I am new to Zen cart and came here looking for others with the same problem as I will describe. I hope someone in the forums can help us fix this.
    Product_Image would show during the process of adding to the database via Admin/Catalog/Categories and Products page. However when I complete and go look at the items in the store the image would not be there.

    First I looked at the resulting source code for the pages with broken pictures. I found that the filenames were cut off at 64th character.

    I went in to the database and find that the product_image field is varchar(64).
    Now when we are going in to admin - new product the system takes the whole name no problem but when it gets sent to the database it gets chopped to the first 64 chars.
    I am certain this is the problem as I can rename my images to less than 64 characters and all is well.
    For myself I use long filenames as it is the start of my product description and filenaming process at the same time and I do not want to limit myself to 64 chars.
    Can someone tell me what will happen if I just get back into the database and bump this one field to varchar(255) ? I am not sure if changing this one particular field will affect the overall. I am certain that if I shortened this field I would corrupt other product images but am hoping that making it larger will not interfere elsewhere in the schema.

    Anyone have a suggestion on this?

    Sincerely, Antique

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Product Database filename field 64 characters

    You can increase the size of the field to accommodate your long filenames ...

    NOTE: be sure to back up your database before making changes to the database table structure ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v150 Maximum number of characters in an image filename??
    By kcb410 in forum General Questions
    Replies: 4
    Last Post: 1 Aug 2013, 06:18 PM
  2. Replies: 0
    Last Post: 9 Mar 2010, 02:41 PM
  3. Issue with product field showing some chinese characters
    By yakbuttertea in forum Basic Configuration
    Replies: 2
    Last Post: 25 Mar 2009, 03:53 PM
  4. adding field to database for product listing
    By suman07 in forum General Questions
    Replies: 4
    Last Post: 22 Jan 2008, 06:54 AM
  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