Hi,
I attached a FinishingUploadEventHandler on my controller. In that event, I plan to use the Username to rename the file. HttpContext.Current.User is null when this method is called. I'm using Windows Forms Authentication, and there is a valid user logged in. The User is populated correctly with all other server calls I do. What's the best way to get the username in the FinishingUploadEventHandler event?
Thanks,
Paul
Hi Paul D,
I have looked at this issue and have not yet found away that this can be accomplished. For details on this issue, I will direct you to the following forum post that addresses this issue:
https://ko.infragistics.com/community/forums/f/ignite-ui-for-javascript/67062/change-text-of-label-control-on-a-page-after-file-uploads
Thanks for the explanation.
I was just reading another Infragistics Help Topic and it seems to suggest that putting username in the file name is possible (and recommended); however, there are no instructions on how to do so:
http://ko.infragistics.com/help/topic/87D0D638-77C4-4B2D-A5F6-52312DAAF606
"Warning:The FinishingUpload handler overwrites files with the same name! In a real-world scenario, you usually do not want overwrite files, so you should employ a user name or some other identifier to ensure that files do not overwrite each other, but, of course, that depends on the business scenario which you are implementing."
Hi Paul,
I am looking further into this topic and am consulting with the engineers for this control. I will have an update for you on this on or about this Monday upcoming.
I want to update you that I am working with our engineers on this and we are looking into how this can be accomplished. I will update you on this thread once I some new information on this objective.