Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3485424
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:54:22+00:00 2026-05-18T10:54:22+00:00

I am in need to use This Class to server multiple files (img/video/mp3) from

  • 0

I am in need to use This Class to server multiple files (img/video/mp3) from an article writing site i use , the only and main problem is that :
All images in the articles should be displayed by that class , and that this class doesn’t show images (initiates a download when called by URL) .
I managed to fix that by deleting this line (maybe line 107)

header('Content-Disposition:attachment; filename="'.$this->properties["name"].'";');

which served me well in displaying images from chrome and firefox , but IE still initiate a download 🙁 .

is there any way / headers to fix that ?

Edit :

I added the following to the meta type :

case "jpg": $content_type="image/".$file_extension; break; 
case "gif": $content_type="image/".$file_extension; break; 
case "png": $content_type="image/".$file_extension; break; 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T10:54:22+00:00Added an answer on May 18, 2026 at 10:54 am

    With setting Content-Disposition to attachment is actually intended to be used not to display the resource directly:

    Bodyparts can be designated `attachment’ to indicate that they are separate from the main body of the mail message, and that their display should not be automatic, but contingent upon some further action of the user.

    But although the Content-Disposition header field is rather part of MIME and not part of HTTP, it “has been proposed as a means for the origin server to suggest a default filename if the user requests that the content is saved to a file.” (See HTTP/1.1 – 19.5 Additional Features)

    Additionally to that, the use of the special media type application/octet-stream is recommended to imply a download:

    If this header is used in a response with the application/octet-stream content-type, the implied suggestion is that the user agent should not display the response, but directly enter a `save response as…’ dialog.

    But since you want to resource to be displayed directly, use the Content-Disposition value inline instead. With this you can use the filename parameter as well to specify a file name different from the URL’s.

    See also Julian Reschke’s Test Cases for HTTP Content-Disposition header field and the Encodings defined in RFC 2047 and RFC 2231/5987 for some further information on the encodings used to encode the filename parameter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have downloaded the silver light from this http://www.microsoft.com/silverlight// I need to use this
I use this class (taken from a blog tutorial) to generate unique keys to
So, I need use this event so I can navigate trought blog posts. I
I need to use this formula to calculate the upper limit and lower limit
I need to use this enum in my C# application, but it won't let
I have developed a simple library in Ruby and need to use this in
I have create name range on sheet A so I need to use this
I have a dll that was written in c++, I need to use this
I need a tool which generates random JSON objects. I want to use this
I need help to use jConfirm with this existing code (php & Jquery &

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.