Automated Web Design & Database Services
code
Manufacturer: code
Brand: code
UPC: code
SKU: code
code
Description
public function deleteSiteImage(){
var local = structNew();
local.root = '#this.installPath#sites/#this.dsn#/site_images'
local.path = '#local.root#/#this.form.directory#';
local.file = local.path & '/' & this.form.file;
try{
fileDelete(local.file)
this.response.setSuccessMessage('File successfully deleted.')
}catch(any e){
this.response.setSuccess(false);
this.response.setMessage(e.message);
}
}
Share this product
Like this product
There are currently no reviews. Write the first one!
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Ubuntu+Mono&display=swap" rel="stylesheet">
<style>
/* body,
body .bodyText{
font-family: 'Ubuntu Mono', monospace;
} */
</style>
<style type="text/css">
/* #flexslider .slides li{position: relative;}
#flexslider .description{background-color: #000; opacity: .7; position: absolute; bottom: 0px; left: 0px; padding: 20px; width: 100%;}
#flexslider .description div{color: #fff; font-weight: bold; font-size: 20px;} */
/* global body */
/* //body{line-height: 30px;}
//input,select,textarea{color: #000;}
//img{max-width: 100%; height: auto !important;} */
/*body table:first-child{box-shadow: 0px 0px 20px 5px #666;}*/
/* column templates
.sb-tpl-two-column,
.sb-tpl-three-column,
.sb-tpl-four-column{border-bottom: solid 1px #dbdbdb; padding-bottom: 10px;}
.sb-tpl-two-column img,
.sb-tpl-three-column img,
.sb-tpl-four-column img{max-width: 100%;}
*/
/* header
#myHeader{position: relative; margin-bottom: -7px; z-index: 2;}
*/
/* body background */
/*body{background: #eee;}*/
/* last image in navigation, force right *
.catLast{float: right !important;}
/
/* customize subnav appearance
.subCatContainer{top: 51px !important;}
.subCatContainer .subCat a{text-shadow: 1px 1px #000000;}
.subCatContainer .subCat:hover a{text-shadow: none;}
*/
/*
#catContainer .category .catCenterOn a{text-shadow: 1px 1px #FFFFFF;}
#catContainer .category .catCenterOff a{text-shadow: 1px 1px #000000;}
.subCatContainer{top: 51px !important;}
.subCatContainer .subCat{min-height: 40px !important; line-height: 40px !important; border-top: solid 1px #666;}
.subCatContainer .subCat a{text-shadow: 1px 1px #000000;}
.subCatContainer .subCat:hover a{text-shadow: none;}
.bodyText{margin-bottom: 20px !important;}
*/
/* builder */
/* //.buildBtn{cursor: pointer;} */
/* body text container */
/*.bodyText{padding: 0px 40px !important;}*/
/* body images */
/*
.bodyText img{
border: 10px solid #ccc;
box-shadow: 10px 10px #333;
-webkit-border-radius: 25px;
-moz-border-radius: 25px;
border-radius: 25px;
}
*/
/* Remove Padding from Site Builder Styles */
/* //.bodyText{padding: 0px !important;} */
/* HEADINGS */
/* h1{font-family: 'Ubuntu Mono', monospace, Impact, Helvetica, Arial; font-size: 40px; line-height: 34px; color: #fed327; font-style: normal;}
h2{font-family: 'Ubuntu Mono', monospace, Impact, Helvetica, Arial; font-size: 30px; line-height: 26px; color: #fed327; font-style: normal;}
h3{font-family: 'Ubuntu Mono', monospace, Impact, Helvetica, Arial; font-size: 20px; line-height: 18px; color: #fed327; font-style: normal;}
h4{color: #00649A}
h5{}
h6{} */
/* BUILD THEME LIST */
/* .buildPreviewContainer{margin-right: 34px;}
.buildLink{margin: 20px auto;} */
</style>