Remove files from an upload area
2 posts by 2 authors in: Forums > CMS Builder
Last Post: Monday at 1:45pm (RSS)
By MercerDesign - June 25
Is it possible to remove ALL upload files from a multi list with one click of a button, I have a multi list that gets republished each week but we want to remove all files before they get republished because they get changed each week.
By Dave - Monday at 1:45pm
Hi MercerDesign,
Yes, it absolutely is, but be sure to back up and exercise caution when testing any code that has the potential to destroy data.
The line should do it:
// Remove ALL uploads from ALL records that match this criteria
removeUploads("tableName = 'yourTableName'");
Hope that helps!
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com