RadUpload Control not working with FireFox.

Thread is closed for posting
3 posts, 0 answers
  1. kunal patel
    kunal patel avatar
    17 posts
    Member since:
    Jul 2009

    Posted 05 May 2010 Link to this post

    Hello,
            I am using RadUpload control with my application.

           When i select the File after browsing through my PC, when i click on Button.
            - I want the full path in which drive the file is being located. I have used the code as below :

             
    MailMessage objmail = new MailMessage(); 
     
              if (RadUpload1.UploadedFiles.Count > 0) 
                { 
                    foreach (UploadedFile file in RadUpload1.UploadedFiles) 
                    { 
                        string strPath = string.Empty; 
                        strPath = file.FileName; 
                        System.Net.Mail.Attachment objattachment = new System.Net.Mail.Attachment(strPath); 
                        objmail.Attachments.Add(objattachment); 
                    } 
                } 

      Now, when i RUN the page & DEBUG using FireFox,
            I get the strPath = "SubModule.txt"
          and get the error,
    {System.IO.FileNotFoundException: Could not find file 'C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\SubModule.txt'. 
    File name: 'C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\SubModule.txt' 
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) 
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) 
       at System.Net.Mail.AttachmentBase.SetContentFromFile(String fileName, String mediaType) 
       at System.Net.Mail.Attachment..ctor(String fileName) 
       at User_SendDocMail.btnsendmail_Click(Object sender, EventArgs e) in e:\Projects\ISalesPro\ISalesProWeb\User\SendDocMail.aspx.cs:line 53} 
     

    But, When i Run with IE,
             I get the strPath = "C:\Documents and Settings\OM\Desktop\SubModule.txt"     
    which works perfectly alright.


    Please help me to sort out this Error in Firefox.

    Thanks,
    Kunal Govani
     

  2. David
    David avatar
    2 posts
    Member since:
    Sep 2010

    Posted 17 Mar 2011 Link to this post

    pls give the answer for the above question. radupload not working in firefox
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 18 Mar 2011 Link to this post

    Hi David,

    FireFox hides that information due to a security reasons. It is not possible to obtain the full client path. Unfortunately there is nothing we can do to change that behavior.

    Best wishes,
    Genady Sergeev
    the Telerik team
Back to Top