I've just tried this with a custom handler (similar in nature to the demo).
I have also added the property to disable the chunks:
Works great locally. No temp folders or files are created.
When I deploy to an IIS server, however, I get the same APP_DATA can't create permission problem that I had before.
What is going on??
My handler is pretty simple and I do everything that was suggested in this post + others regarding this situation and this property.
Imports
Telerik.Web.UI
Public
Class
CustomRadAsyncUploadHandler
Inherits
AsyncUploadHandler
Implements
System.Web.SessionState.IRequiresSessionState
Protected
Overrides
Function
Process(file
As
Telerik.Web.UI.UploadedFile, context
As
System.Web.HttpContext,
configuration
As
Telerik.Web.UI.IAsyncUploadConfiguration, tempFileName
As
String
)
As
Telerik.Web.UI.IAsyncUploadResult
'The BASE process saves things to TEMP location/folder. We don't want that.
'Return MyBase.Process(file, context, configuration, tempFileName)
Dim
iDocumentID
As
Int64? =
Nothing
Dim
result
As
CustomRadAsyncUploadResult =
Me
.CreateDefaultUploadResult(Of CustomRadAsyncUploadResult)(file)
Dim
config
As
CustomRadAsyncUploadConfiguration = TryCast(configuration, CustomRadAsyncUploadConfiguration)
If
config IsNot
Nothing
Then
'Save our file to the TEMP area for documents
SetData.SetDocumentData.SetTempDocument(config.eDocmentCategoryType, file, config.gBatchID, config.eDocumentLocationType, iDocumentID)
'Then... pass on some vital information for the FileUploaded handler
result.iDocumentID = iDocumentID
result.eDocumentLocationType = config.eDocumentLocationType
result.sAjaxManagerClientID = config.sAjaxManagerClientID
End
If
Return
result
End
Function
End
Class