Get uploaded real file name!!!

  •  04-04-2014, 4:53 AM

    Get uploaded real file name!!!

    Hi guys, I have the following problem.

    WHen I try to upload files in different times, could happens that the name of a file is the same of a file aready present on the target destination. In that case, the uploader class provides to rename the new file, but I can't get the new filename...

    The code I'm using is the following: 

     

              <%

                    Dim uploader

                    Set uploader=new AspUploader

                    uploader.Name="myuploader"

                    

                    uploader.MaxSizeKB=10240

                    uploader.InsertText="Upload File (Max 10M)"

                   uploader.AllowedFileExtensions="*.pdf,*.jpg"

                    uploader.MultipleFilesUpload=true

                    

                    uploader.SaveDirectory="documents"

                    

                    uploader.render()

                %>

     

     

     

    <script type='text/javascript'>

          function CuteWebUI_AjaxUploader_OnTaskComplete(task)

          {

                savefiletodbrequest(task.FileName);

          }

     </script>

     

View Complete Thread