The FileCollection object represents the set of files in a file transfer. To set a FileCollection object, use:
In ASP.NET (C#):
FileUpEE objFileUpEE = new FileUpEE();
FileCollection objFileCollection = objFileUpEE.Files;
In ASP:
Set objFileUpEE = Server.CreateObject("SoftArtisans.FileUpEE")
Set objFileCollection = objFileUpEE.Files
| FileCollection Properties | FileCollection Methods |
|---|---|
| Count | Add |
| Item | AddDbDownloadFile |
| AddDownloadFile | |
| AddFile | |
| AddFileEE | |
| Remove | |
| RemoveAll |
| FileCollection Properties | |
|---|---|
| Count |
Syntax
objFileCollection.Count
Description
Returns the number of files in a
|
| Item |
Syntax
objFileCollection[.Item](Key)
Desription
|
| FileCollection Methods | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Add |
Syntax
objFileCollection.Add(FileBuffer, [Name], [ContentId],
Overwrite as Boolean)
Description
Use |
||||||||||||
| AddDbDownloadFile |
Syntax
objFileEE = objFileCollection.AddDbDownloadFile(ClientPath,
[Name],[WebServerDownload as Boolean])
Description
To download a file from a database, you must set the file's table name, primary
key column, primary key value, file column name, and the database connection string.
See the Parameters
|
||||||||||||
| AddDownloadFile |
Syntax
objFileEE = objFileCollection.AddDownloadFile(DownloadPath,
ClientPath, [Name], [WebServerDownload as Boolean])
Description
Parameters
|
||||||||||||
| AddFile |
Syntax
objFileCollection.AddFile(FileName, [Name], [ContentId],
[Overwrite as boolean])
Description
Use Parameters
|
||||||||||||
| AddFileEE |
Syntax
objFileCollection.AddFileEE (FileEE Instance, [ReadFile
as Boolean], [DownloadFile as Boolean])
Description
|
||||||||||||
| Remove |
Syntax
objFileCollection.Remove(File Key)
Description |
||||||||||||
| RemoveAll |
Syntax
objFileCollection.RemoveAll()
DescriptionRemoves all files from the file collection. |
||||||||||||