On a single customer system, I have a scenario where if I upload multiple files either on thier own or in a batch, the filename seems to "stick", which as a result causes me to update the same data record over and over. The getname function is working correctly because the display name field on the data record is being updated. Not able to re-create on approx 10 other production/development systems on the same application build.
Any ideas/suggestions? below is the process code - 3rd line seems to be the problem, and given that it works on other systems seems to tie back to the GUI control or browser that is in some way unique to this installation.
Any ideas/suggestions? below is the process code - 3rd line seems to be the problem, and given that it works on other systems seems to tie back to the GUI control or browser that is in some way unique to this installation.
For
Each
uploaditem
As
Telerik.Web.UI.UploadedFile
In
rupUploadFile1.UploadedFiles
Dim
objUploadStruct
As
New
Structures.CommonStructures.UploadStruct
objUploadStruct.originalfilepath = uploaditem.FileName
objUploadStruct.CustomerID = userinfo.ActiveCustomerID(
False
)
objUploadStruct.CategoryID = GetCategoryID()
objUploadStruct.OrganizationID = GetOrganizationID()
objUploadStruct.MessageTrackingid = GetMessageTrackingID
objUploadStruct.imageusageid = enuImageUsageID
objUploadStruct.RequestPoint = enuUploadTriggerPoint
objUploadStruct.UserID = userinfo.UserID
objUploadStruct.LinkedContent = LinkedContent
objUploadStruct.FileName = uploaditem.GetName
objUploadStruct.LanguageID = userinfo.DefaultLanguage
objUploadStruct.Display_Name = Left(uploaditem.GetName, uploaditem.GetName.LastIndexOf(
"."
))
objUploadStruct.Description = Left(uploaditem.GetName, uploaditem.GetName.LastIndexOf(
"."
)) +
" from upload"
'objUploadStruct.EntryTypeID = GetEntryTypeID(uploaditem.GetExtension)
Try
uploadedid = SaveUploadedFile(objUploadStruct, rupUploadFile1.TargetPhysicalFolder +
"\"
+ uploaditem.GetName)
If
uploadedid = 0
Then
bolIsError =
True
strErrorMessage.AppendLine(uploaditem.GetName &
": "
& Global.Castnet.App.Language.CastnetInterpreter.InternationalizeString(
"UnspecifiedError"
, intLanguageCode) &
"<br />"
)
End
If
Catch
ex
As
Exception
strErrorMessage.AppendLine(uploaditem.GetName &
": "
& Global.Castnet.App.Language.CastnetInterpreter.InternationalizeString(ex.Message.Replace(
" "
,
""
).Replace(
"."
,
""
), intLanguageCode) &
"<br />"
)
bolIsError =
True
End
Try
Next
Thanks
Carlin