Hi there.
I'm trying to use the FileSystemUtils.UploadFile
Since i havn't been able to find the syntax for it i have this question for my scenario.
Ive got a module with a ASP.NET FileUpload Control and a Standart ASP.Net Button.
I Want to upload the file from the FileUpload Control and therefore i wire up an onClick Event for the Button with the following code
FileSystemUtils.UploadFile("", [FileUpload].PostedFile, false)
Where the "" is the rootpath, the [FileUpload].PostedFile is my FileUploadContol's PostedFile Property and the last false is for unzip.
My suspicion is that the RootPath needs to be something else, but what?
I keep getting this error message:
|
A critical error has occurred.
startIndex cannot be larger than length of string. Parameter name: startIndex |
Since the documentation is somewhat slim for this function (or i havn't been able to find it) could someone please assist?
Michael Hughson