Thanks Mitch, I got the upload working.
However I now have another problem and that is getting the virtual path of the file that has been uploaded so that I can display it in my module.
I store the file id (38) and I use the
DotNetNuke.Services.FileSystem.FileController.GetFileById(HRGi.ImageID, PortalId)
to populate a DotNetNuke.Services.FileSystem.FileInfo object
BUT this fileinfo object only gives the Physical path:
?objFileInfo
{DotNetNuke.Services.FileSystem.FileInfo}
ContentType: "image/gif"
Extension: "gif"
FileId: 38
FileName: "newspaper.gif"
Folder: ""
FolderId: 16
Height: 114
IsCached: False
PhysicalPath: "C:\DotNetNuke Sites\DNN_481\Portals\0\newspaper.gif"
PortalId: 0
Size: 12428
StorageLocation: 0
Width: 114
Any idea's how I get the virtual path from the FileID, so that I can display the uploaded image within my module?