Hello,
I am trying to create a custom ContentProvider to resize an uploaded image. I am having a problem getting the physical file name in the StoreFile function.
I have the following code in the StoreFile Method
The problem is that outfile returns as a virtual path to the file, and not the physical path. I have tried mybase.GetAbsolutePath(outfile) but it also just returns the virtual path "/imageUploads/testdir/"
It seems like it should be very straight forward, am I missing something?
I am trying to create a custom ContentProvider to resize an uploaded image. I am having a problem getting the physical file name in the StoreFile function.
I have the following code in the StoreFile Method
Dim outFile As String = "" | |
outFile = MyBase.StoreFile(file, path, name, arguments) | |
The problem is that outfile returns as a virtual path to the file, and not the physical path. I have tried mybase.GetAbsolutePath(outfile) but it also just returns the virtual path "/imageUploads/testdir/"
It seems like it should be very straight forward, am I missing something?