diff --git a/models/CBWIREController.cfc b/models/CBWIREController.cfc index de873c7..76c4bac 100644 --- a/models/CBWIREController.cfc +++ b/models/CBWIREController.cfc @@ -135,13 +135,6 @@ component singleton { if( !directoryExists( local.storagePath ) ){ directoryCreate( local.storagePath ); } - // Cleanup files in the storage path by checking for files older than 1 days - local.files = directoryList( path=local.storagePath, recurse=true, type="file", listInfo="query" ); - local.files.each( function( _file ) { - if( dateDiff( "d", _file.DateLastModified, now() ) > 1 ){ - fileDelete( _file ); - } - } ); // Verify the signed URL, throw 403 if invalid if( !verifySignedUploadURL( expires=event.getValue( "expires" ), signature=event.getValue( "signature" ) ) ){ return event.renderData( statusCode=403, statusText="Forbidden", data="Invalid signed URL." );