New topic: 

MIME Type

<http://forums.realsoftware.com/viewtopic.php?t=46934>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        neonash7777          Post subject: MIME TypePosted: Wed Feb 13, 
2013 4:02 pm                                 
Joined: Mon Nov 29, 2010 7:01 pm
Posts: 383                I have the user downloading files and sometimes I 
just want them to open in the browser,
but even though I set ForceDownload to false and the MIMEType, it doesn't seem 
to work.


if file.Filename.Left(4) = ".jpg" then
  file.MIMEType = "image"
end


Do I need to give the subtype too? Is there a way to have REALStudio provide 
the MIMEtype based on the extension so I can have all pictures and pdf's opened 
by the browser?   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to