Thank you that works perfectly now
Ideally i'd like the file name and the file path to be different, I've removed the uploading part so the section now reads
$unset = array();
foreach($product->files as $k => $file){
if(substr($file,0,7)=='http://'){
$parts = explode('/',$file);
$name = array_pop($parts);
if(filesize($this->uploadFolder.$name)){
$product->files[$k] = $name;
}else{
$unset[]=$k;
}
}
}
if(!empty($unset)){
foreach($unset as $k){
unset($product->files[$k]);
}
}
I can see that $name becomes the file name, but I can't see where $file disappears to and I can't see how either fit with the (and I assume I'm looking at the right function later in the import.php) _insertFiles function
The only reason that I want to do this becuase if the full file path is given as the name then it looks bad on the order form and also allows the customer to see where the files are located - potentially allowing them to access the other files.
Thanks for your help so far