Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2008
    Posts
    21
    Plugin Contributions
    0

    Default Cleaning out uploaded files

    I'm building a printing site based off ZC. Every product requires one or more file uploads. HUGE ones, if you think of a printing site.

    I would like a way to be able to go in and clean out files that aren't being used. Say a customer uploads a file and adds a product to the cart, then goes back in and uploads another file to replace the original. Or deletes the product from the cart. Basically anything that will cause an uploaded file to no longer be associated with a customer product.

    If there's no existing ZC way to do this, I can custom-code it. I'd appreciate pointers on where to start, though. Any advice on what tables I'd need to check to make sure I'm only deleting "orphaned" files? It seems like it would be easier to do this in one place than to try to find everywhere in ZC where a file could stop being associated with a product, but I'm open to any suggestions.

    I have a bad feeling that this site is going to be VERY quickly filling up my client's disk space!

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Cleaning out uploaded files

    There may also be server restrictions on the size of uploaded files - unless you have your own server...

  3. #3
    Join Date
    Mar 2008
    Posts
    21
    Plugin Contributions
    0

    Default Re: Cleaning out uploaded files

    I have my own server, so that's not an issue. And I know I'm going to have to come up with some way to archive the older files that ARE being used at some point anyway. But I figure a good start is to be able to delete the ones that aren't actually being used for anything.

 

 

Similar Threads

  1. Cleaning out old data on a v1.3.7.1?
    By gabstero in forum General Questions
    Replies: 4
    Last Post: 26 Aug 2013, 05:51 PM
  2. cleaning old files on 1.3.9h -> strange error
    By sanji in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 30 Dec 2010, 02:26 PM
  3. Help in cleaning up image files/cpanel
    By honeysclerose in forum General Questions
    Replies: 2
    Last Post: 9 Nov 2007, 10:04 PM

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