ibuildyourwebsite.net logo
Automated Web Design & Database Services

code

Manufacturer: code
Brand: code
UPC: code
SKU: code
code
Average Review: (no reviews)Write a Review
Description
  • sdfasf
public function deleteSiteImage(){
var local = structNew();
local.root = '#this.installPath#sites/#this.dsn#/site_images'
local.path = '#local.root#/#this.form.directory#'; // 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
Write a Review
There are currently no reviews. Write the first one!