#1113 downloading attachement, wrong type

closed-fixed
None
5
2003-05-12
2003-03-04
No

Hi,

squirrelmail : today's 1.4CVS
php : 4.2.1
apache : 1.3.27
browser : mozilla 1.2.1

When I open an email with an attachment, squirrelmail
displays the rigth type of file, eg:
Attachments:
motardes.pps 1.2 M [ application/pps ] download

But if I click on the document or 'download', it is
coming up as [application/octect-stream]! On linux or
windows, it's the same thing.

Thanks.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    i can verify this bug, same thing happens to me with pheonix
    0.5 based on mozilla

     
  • Jonathan Angliss

    Logged In: YES
    user_id=620333

    To force a "download" of the file, we have to force the mime
    type to be application/octet-stream. If we passed
    application/pps, the file would be viewed in the browser
    instead of downloaded if you had the right software installed.

     
  • Nobody/Anonymous

    Logged In: NO

    i am having the same problem. it makes it darn near
    impossible for the average user to open an attachment. they
    have to save it, then open the correct app and then open the
    document (doc,xls, or whatever).

    with ie you dont have this problem because it will ignore the
    incorrect mime type and open the right program anyway.

    with anything else you cant set the right app up permanently
    becuase every attachment comes up with the same mime
    type.

    could we please have an option to turn this behavior off, it has
    been wreaking havoc for me since we upgraded.

     
  • Erin Schnabel

    Erin Schnabel - 2003-05-10

    Logged In: YES
    user_id=644252

    Fixed in 1.5.1 CVS.

    Please download copy of mime.php from here, and drop it into
    your current install (make a backup) and let me know if it
    helps.

    http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/\*checkout*/squirrelmail/squirrelmail/functions/mime.php?rev=HEAD&content-type=text/plain

     
  • Erin Schnabel

    Erin Schnabel - 2003-05-10
    • assigned_to: nobody --> ebullient
    • status: open --> open-fixed
     
  • Ronan SALMON

    Ronan SALMON - 2003-05-12

    Logged In: YES
    user_id=555739

    Reply to jangliss :

    If I click on 'download', mime type sould be
    application/octet-stream. But if I click on the document,
    the mime type should be something like application/pps for a
    powerpoint. I think that it should be like clicking on
    'view' (whenever it is showed).

     
  • Ronan SALMON

    Ronan SALMON - 2003-05-12

    Logged In: YES
    user_id=555739

    The fix from 1.5.1cvs seems to work for me on 1.4.1cvs.
    Thanks.

     
  • Erin Schnabel

    Erin Schnabel - 2003-05-12

    Logged In: YES
    user_id=644252

    Will roll back into stable... ;)

     
  • Erin Schnabel

    Erin Schnabel - 2003-05-12
    • status: open-fixed --> closed-fixed
     
  • G.P. Land

    G.P. Land - 2003-05-17

    Logged In: YES
    user_id=780877

    LS,
    Well it works better the old one.
    But after I opened one attachments I get the same
    unreadable stuff.
    And an error message:

    Fatal error: Call to a member function on a non-object
    in ../class/mime/Message.class.php on line 679

    Regards

     

Log in to post a comment.