Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions models/CBWIREController.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -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." );
Expand Down
Loading