Browse Source

* Introduce DefaultRequestUploadDir for easy configuration of Upload directory location

git-svn-id: trunk@33032 -
michael 9 years ago
parent
commit
0ca95e99df
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/fcl-web/src/base/httpdefs.pp

+ 2 - 1
packages/fcl-web/src/base/httpdefs.pp

@@ -437,6 +437,7 @@ type
     Procedure InitContent(Var AContent : String);
     Property ContentRead : Boolean Read FContentRead Write FContentRead;
   public
+    Class Var DefaultRequestUploadDir : String;
     constructor Create; override;
     destructor destroy; override;
     Function GetNextPathInfo : String;
@@ -1662,7 +1663,7 @@ end;
 function TRequest.RequestUploadDir: String;
 
 begin
-  Result:='';
+  Result:=DefaultRequestUploadDir;
 end;
 
 function TRequest.GetTempUploadFileName(const AName, AFileName: String;