Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2005
    Posts
    246
    Plugin Contributions
    0

    Default Attribute type-File, Incomplete orders leave files on server

    Is there a way to make Zen-Cart delete orphaned uploads? For example, a product is "Business Cards" and it has 2 file uploads, Image Front, Image Back.

    A person begins to place an order, uploads their images, then decides not to order. They delete or abandon the cart. The image remains on the server.

    I want to prevent my server space from being wasted.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Attribute type-File, Incomplete orders leave files on server

    Sorry, not at this time.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Attribute type-File, Incomplete orders leave files on server

    I guess you can write a script to scan for such abandoned images and remove them.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  4. #4
    Join Date
    Feb 2005
    Posts
    246
    Plugin Contributions
    0

    Default Re: Attribute type-File, Incomplete orders leave files on server

    Quote Originally Posted by yellow1912 View Post
    I guess you can write a script to scan for such abandoned images and remove them.
    I am about to do the same thing for another script, so I'll try to do it here too. My only concern is knowing what all tables to check to make sure I don't delete a needed file. Anyone have enough experience with zen's db to make a list of all the tables and columns I need to check prior to deleting the files?

  5. #5
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Attribute type-File, Incomplete orders leave files on server

    Look into the attribute related tables, Im not 100% sure which table since I dont remember them all, but there are only a few tables related

    Raine
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

 

 

Similar Threads

  1. Replies: 3
    Last Post: 30 Apr 2013, 07:03 PM
  2. Replies: 14
    Last Post: 2 Jan 2011, 11:13 PM
  3. Downloads ending early -- incomplete files received
    By michelleherron in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 16 Sep 2008, 03:39 PM
  4. Incomplete Orders
    By Bowlmaster in forum General Questions
    Replies: 1
    Last Post: 28 Aug 2007, 06:18 AM
  5. Incomplete download of IIF file - attributes
    By jcheger in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 16 Jan 2007, 09:04 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