File Upload with Macintosh users

Discussion in 'ASP.NET / ASP.NET Core' started by jb2006, Oct 27, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Macintosh users are not able to upload files on our website. An exception occurs in the code below on the line "With uplFile.PostedFile" but only for Macintosh users. I did some research and some say you can't use Macintosh with asp.net upload. While others say it works but you can't use .FileName to get the extension.

    Anyone know if there is a work around with file upload and Macintosh users?




    File upload html used:
    <input id="uplFile" type="file" runat="server" size="30" />








    Code snippet from postback:

    With uplFile.PostedFile
    'get the file extension
    strFileExt = System.IO.Path.GetExtension(.FileName).ToLower
    .SaveAs(Server.MapPath("\") &amp; "/images/test" &amp; strFileExt)
    .InputStream.Dispose()
    End With
     
  2. I've never even used a Mac but have seen the MacBinary problem many times.
    15 Seconds did an article listing some of the problem, and solutions.
    Seems using a 3rd Partycomponent in ASP.NET is used most often.
    http://www.15seconds.com/issue/010504.htm
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    I am almost certain that ASP.NET upload works on a MAC. Do you mind if I test your page?

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page