telmiger
Posts: 61
|
| Posted: 05/11/2005, 12:37 PM |
|
I use the file upload module in about 10 different places.
I am trying to set the upload path for all upload modules in 1 place instead of setting them in each module.
1. I created a function to set the file path
function correspondence_path()
{
$path_2;
$path_2 = ("d:/xampp/xampp/htdocs/cns/documents/"); // Local PC
return $path_2;
}
2. In the Before Process File I added the following code
$correspondance1->FileUpload1->FileFolder = (correspondence_path("$path_2"));
The upload works but if I open the form in edit mode the following error appears
The file Pages from "uploaded FileName" specified in FileUpload1 was not found.
Is there another place where the path has to be set for the edit mode?
Is there a way to call up the above function in the properties window of the file upload where you would normally type in the file path?
|
 |
 |
|