CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 File Upload with custom folder function

Print topic Send  topic

Author Message
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?
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.