Skip to content

Not remove the files in the temp directory #182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
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