Automatically open file based on MIME type and file extension

We have an app that is registered to handle custom MIME type and file extension. This works perfectly on IE and FireFox causing them to download the file to a temp folder and then launch our app associated with MIME type and file extension with command line to the downloaded file. On Safari however this does not work. It opens up a download window and shows that it has downloaded the file with no option to open it.

hello, you can file a bug on bugzilla.mozilla.org if you want to include your plugin in the plugin finder service...
[https://wiki.mozilla.org/PFS]

Similar Messages

  • Mime-type and/or extension of script file

    I would like to generate a script file dynamically on my web server and then have it downloaded to my users such that they can simply double-click the file and have it execute. I've gotten pretty close by using the ".command" extension, but it still requires a "chmod +x filename" after download in order to work properly. Is there another extension or a mime-type that I could use that would cause Mac OS X 10.4 and/or 10.5 to grant execute rights to the user that downloaded it? I'm not married to it being shell script if it can be done with AppleScript, Ruby, etc that would be great. It basically just has to be text file (non-binary format) so I can dynamically generate it on the server side.

    Hi Daniel,
    do you use EPG, mod_plsql or APEX Listener? Have you changed the connection mechanism after upgrading to 4.2.1?
    If you use the APEX Listener, which version do you use? Which browser and version do you use to upload the file? Does it reproduce with other browsers as well?
    Regards
    Patrick
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Identifying the correct MIME type for file uploads

    How does Apex identify the MIME type of an uploaded file? I have a page that uploads a file and accesses it via APEX_APPLICATION_FILES. That works fine. The problem is that, for certain file types, the mime_types column is "application/octet-stream" instead of the correct file type. I think it's using the Content-Type from the client browser, though I'm not quite sure. Is there any way to override this server-side in Apex?
    I'm running Apex with mod_plsql. Adding an AddType directive to Apache and adding the correct association to the mime.types file did not work.

    Hi,
    I also noticed this - it seems that Microsoft's 4 char extensions like .docx are not being recognized by application type so that either the web server or mod-plsql is defaulting to the "application/octet-stream" mime type which refers to a file with binary content - instead of the traditional "application/msword" mime type you would expect.
    If you know, at the point of insert into your database table, both the mime type and file name, one workaround would be to check if the mime type is 'application/octet-stream' and the file's extension is ".docx" or other likely extensions and then treat it as mime type 'application/msword", etc.
    Not really a solution but might be sufficient workaround depending on your situation.
    Ted
    Edited by: Ted Martin on Oct 25, 2012 7:27 PM

  • Get Uploaded File Mime Type and Client Filename

    Anyone know how to recover an uploaded file MIME type and
    client file name?
    I'm writing my own cfx tag to process file uploads and pretty
    much have it figured out except to determine the name of the client
    file and mime type. The formfield file variable value contains the
    path/filename to the CF temp directory, but I need the MIME type,
    filename, etc. that is contained int he HTTP Header
    (e.g. Content-Disposition: form-data; name="Image";
    filename="C:\test.JPG"
    Content-Type: image/pjpeg
    [empty line])
    I'm using the getHttpRequestData() functiont, but it only
    gives me the content-type multipart/form-data, leaving out the Mime
    type and Content-Disposition (which contains the client file name).

    Hi Daniel,
    do you use EPG, mod_plsql or APEX Listener? Have you changed the connection mechanism after upgrading to 4.2.1?
    If you use the APEX Listener, which version do you use? Which browser and version do you use to upload the file? Does it reproduce with other browsers as well?
    Regards
    Patrick
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • [svn] 1607: Set svn:mime-type and svn: eol-style on LICENSE and NOTICE files in the lib directory.

    Revision: 1607
    Author: [email protected]
    Date: 2008-05-07 17:02:39 -0700 (Wed, 07 May 2008)
    Log Message:
    Set svn:mime-type and svn:eol-style on LICENSE and NOTICE files in the lib directory.
    Modified Paths:
    flex/sdk/branches/3.0.x/lib/batik-NOTICE.txt
    flex/sdk/branches/3.0.x/lib/commons-discovery-LICENSE.txt
    flex/sdk/branches/3.0.x/lib/xalan-NOTICE.txt
    flex/sdk/branches/3.0.x/lib/xerces-LICENSE.txt
    Property Changed:
    flex/sdk/branches/3.0.x/lib/batik-LICENSE.txt
    flex/sdk/branches/3.0.x/lib/batik-NOTICE.txt
    flex/sdk/branches/3.0.x/lib/commons-collections-LICENSE.txt
    flex/sdk/branches/3.0.x/lib/commons-discovery-LICENSE.txt
    flex/sdk/branches/3.0.x/lib/commons-logging-LICENSE.txt
    flex/sdk/branches/3.0.x/lib/commons-logging-NOTICE.txt
    flex/sdk/branches/3.0.x/lib/mm-velocity-LICENSE.txt
    flex/sdk/branches/3.0.x/lib/mm-velocity-NOTICE.txt
    flex/sdk/branches/3.0.x/lib/xalan-LICENSE.txt
    flex/sdk/branches/3.0.x/lib/xalan-NOTICE.txt
    flex/sdk/branches/3.0.x/lib/xerces-LICENSE.txt

    Thanks for your attention.
    In the above logs, higher resolutions seems to be detected on both screens, hence my surprise :
    [ 391.631] (II) intel(0): Printing probed modes for output LVDS1
    [ 391.631] (II) intel(0): Modeline "1600x900"x60.0 110.00 1600 1664 1706 2010 900 903 906 912 -hsync -vsync (54.7 kHz eP)
    [ 391.897] (II) intel(0): Printing probed modes for output HDMI1
    [ 391.897] (II) intel(0): Modeline "1680x1050"x59.9 119.00 1680 1728 1760 1840 1050 1053 1059 1080 +hsync -vsync (64.7 kHz eP)
    If it can help here is also my current xrandr output (after having called it manually to use the preferred resolution of each screen)
    itanguy ~ $ xrandr
    Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 8192 x 8192
    LVDS1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
    1600x900 60.0*+ 40.0
    1024x768 60.0
    800x600 60.3 56.2
    640x480 59.9
    VGA1 disconnected (normal left inverted right x axis y axis)
    HDMI1 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 434mm x 270mm
    1680x1050 59.9*+
    1280x1024 75.0 60.0
    1152x864 75.0
    1024x768 75.1 60.0
    800x600 75.0 60.3
    640x480 75.0 60.0
    720x400 70.1
    DP1 disconnected (normal left inverted right x axis y axis)
    HDMI2 disconnected (normal left inverted right x axis y axis)
    HDMI3 disconnected (normal left inverted right x axis y axis)
    DP2 disconnected (normal left inverted right x axis y axis)
    DP3 disconnected (normal left inverted right x axis y axis)
    If needed, I may reboot and provide xrandr output after boot (it will be 1024x768), or could other logs help you ? Please ask...

  • When opening microsoft word on mac it automatically opens a huge number of my word files and I have to wait for it to open them all then when i try to close them down it freezes and I 'force quit' and on reopening the same thing repeats

    When opening microsoft word on mac it automatically opens a huge number of my word files and I have to wait for it to open them all then when i try to close them down it freezes and I 'force quit' and on reopening the same thing repeatsI have to wait for it to open them all then when i try to close them down it freezes and I 'force quit' and on reopening the same thing repeats

    One thing to try/check - in System Preferences, General.  Check the box "Close windows..."

  • Dps file automatically opening multiple times when working on another file in the same folio?

    dps file automatically opening multiple times when working on another file in the same folio? Can anybody please help

    Can you try resetting your preferences first and see if that helps - see Troubleshooting 101: Replace, or "trash" your InDesign preferences

  • Mime-types and schemas

    Hi
    after my last update yesterday I have got some problems with some mime-types. Directly after the update pacman said the following:
    Warning in file "/usr/share/applications/nautilus-folder-handler.desktop": usage of MIME type "x-directory/gnome-default-handler" is discouraged ("x-directory" is an old media type that should be replaced with a modern equivalent)
    Warning in file "/usr/share/applications/nautilus-folder-handler.desktop": usage of MIME type "x-directory/normal" is discouraged ("x-directory" is an old media type that should be replaced with a modern equivalent)
    Error in file "/usr/share/applications/oraclexe-readonlinehelp.desktop": "Application/database" is an invalid MIME type ("Application" is an unregistered media type)
    Error in file "/usr/share/applications/oraclexe-startdb.desktop": "Application/database" is an invalid MIME type ("Application" is an unregistered media type)
    Warning in file "/usr/share/applications/chromium-browser.desktop": usage of MIME type "x-directory/webdav" is discouraged ("x-directory" is an old media type that should be replaced with a modern equivalent)
    Warning in file "/usr/share/applications/chromium-browser.desktop": usage of MIME type "x-directory/webdav-prefer-directory" is discouraged ("x-directory" is an old media type that should be replaced with a modern equivalent)
    I also get a similar message when I try to install awn-extras from AUR altough it is installable (but not fully functional).
    (1/1) Installiere awn-extras-bzr [#####################] 100%
    I/O warning : failed to load external entity "/usr/share/gconf/schemas/awn-extras.schemas"
    »/usr/share/gconf/schemas/awn-extras.schemas« konnte nicht geöffnet werden: Datei oder Verzeichnis nicht gefunden
    It says, that the schema isnt found. Do you have any solutions?
    ~kiro

    .oO(Art)
    >When validating site, I'm getting the the following
    warning
    >-------------------------
    >Conflict between Mime Type and Document Type
    >
    >The document is being served with the text/html Mime Type
    which is not a
    >registered media type for the XHTML 1.1 Document Type.
    The recommended
    >media type for this document is: application/xhtml+xml
    >-------------------------
    >I work with ASP and I can't figure out why, really, it's
    doing this nor
    >can I figure out how to solve it.
    XHTML 1.1 documents should be delivered as
    application/xhtml+xml. This
    is not recommended, since IE doesn't support this MIME type.
    So switch
    back to XHTML 1.0 Strict, which can also be delivered as
    text/html.
    Micha

  • Mime Types and site validation?

    When validating site, I'm getting the the following warning
    Conflict between Mime Type and Document Type
    The document is being served with the text/html Mime Type
    which is not a
    registered media type for the XHTML 1.1 Document Type. The
    recommended
    media type for this document is: application/xhtml+xml
    I work with ASP and I can't figure out why, really, it's
    doing this nor
    can I figure out how to solve it.
    I use: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    and everything validates fine except for this last thing.

    .oO(Art)
    >When validating site, I'm getting the the following
    warning
    >-------------------------
    >Conflict between Mime Type and Document Type
    >
    >The document is being served with the text/html Mime Type
    which is not a
    >registered media type for the XHTML 1.1 Document Type.
    The recommended
    >media type for this document is: application/xhtml+xml
    >-------------------------
    >I work with ASP and I can't figure out why, really, it's
    doing this nor
    >can I figure out how to solve it.
    XHTML 1.1 documents should be delivered as
    application/xhtml+xml. This
    is not recommended, since IE doesn't support this MIME type.
    So switch
    back to XHTML 1.0 Strict, which can also be delivered as
    text/html.
    Micha

  • Disable the Item Availability Button based on Order type and Item category

    Hi ,
    My requirement is to disable the Item availability check button in VA01 based on the Order Type & Item category. Is there any user Exits/ Badi / FM available for this.
    Thanks in advance.
    Srinivas.

    Hi,
    Although it is an old post I need to answer for people who search an answer to the same type of question. To hide a field
    you can use transaction variant 'tcode:SHD0'. But it is not based on Order type and Item category. May be you can use
    USEREXIT_FIELD_MODIFICATION form in user-exit MV45AFZZ. You can loop at screen and set screen-active = 0 in fields
    where you want them to be inactive.

  • IMac 500GB HDD occupied by 499.25 "other" files while all other types of files show "0 KB", what gives?

    iMac 500GB HDD occupied by 499.25 GB "other" files while all other types of files show "0 KB", what gives?
    I've tried cleaning up the HDD from HD tool twice and pressed command-option-P-R while restarting the Mac afterwards. The avaliable HDD space "improved" from 1.3 MB to 121 MB after the first restart and descresed down to 119MB after the second restart. I have kept very little AV files as well as doucment files. My application programs are just several GB. Is this a system problem. Do I have to reinstall the system?
    Much appreciate any advice!!
    BTW Apple customer service is on HOILDAY these two days from where I'm staying...

    You may find this Discussioon of interest and value...
    https://discussions.apple.com/message/18595469#18595469
    From the " More Like This " on the right.

  • How do I transfer PDF files from PC to IPAD using Itunes 12.1.2.  Previous versions let me drag file in Itunes to Ipad and files appeared under Ibook but can't get it to work in latest 12.1.2 version.

    How do I transfer PDF files from PC (Windows 7) to IPAD using Itunes 12.1.2.  I would like to do files manually rather then auto synch.  Previous versions let me drag file in Itunes to Ipad and files appeared under Ibook and then I could move them to an appropriate collection title.  The interface appears to have changed in the latest ITunes version and I am not sure what the proper procedure is.

    King_Penguin - Thanks it worked perfectly.  I had my pdf files copied into ITunes on my PC but when I clicked on a pdf file to copy it I thought the sidebar would appear with my IPAD name and then I would drag it over.  I didn't realize that I needed to click-and start dragging it towards the left-hand side for the sidebar to appear.  It worked like a charm - THANKYOU!!!

  • File/Open Dialog Box / Setting MIME type

    In my application, I am calling a web service that returns text that I need to download into an EDI application. I am simply looking to have an open/file dialog box open when the text is returned. I was using the following code in a PL/SQL process:
    begin
    -- Set the MIME type
    owa_util.mime_header( 'application/octet', FALSE );
    -- Set the name of the file
    htp.p('Content-Disposition: attachment; filename="EDIOuput.edi"');
    -- Close the HTTP Header
    owa_util.http_header_close;
    end;
    The problem is the HTML code that comes along with the text that is returned. Is there a way to simple call the procedure on a page that only containes the raw data?
    Thank you.

    HTML doesn't provide you the possibility to select multiple files or select folders at a single browse. Thus JSF can't do any much for you. Best what you can do is to write a signed applet or web start application which does the task. The Mojarra Scales component library has a ready-to-use component which embeds an applet which does that task. Check [https://scales.dev.java.net/multiFileUpload.html].

  • When I try to click on a download link for a .pdf file Firefox does not recognize the MIME type and tries to download the file as "index.php"

    When visiting a site I frequent I tried to download a linked .pdf file. Previously I've used Firefox 7.0.1 to download the link with no problem. Using Firefox 8 however I the browser does not recognize the .pdf link's mime type. Instead of recognizing the download link as a .pdf file Firefox 8 tries to download it as "index.php". Firefox 8 does this with .doc files and .txt files as well. When I downgrade to 7.0.1 again the problem disappears.

    Hi hakmacpace,
    I'd try starting Firefox in [[Safe Mode]]. If you don't have the issue while all of your add-ons, extensions, and themes are disabled, you can try adding them back in one by one until you find the culprit. You should look at the [https://support.mozilla.org/en-US/kb/Troubleshooting-extensions-themes Extensions and Themes troubleshooting guide ] and the [[Troubleshooting plugins]] article as well.
    You could also try [https://support.mozilla.org/en-US/kb/Managing-profiles?s=create+a+new+profile&r=2&e=es&as=s#w_creating-a-profile Creating a new profile].
    Hopefully this helps!

  • When connected via USB, my Ipod Classic 160GB mounts as a disc drive, then changes to a white drive.  When iTunes automatically opens, it crashes trying to mount and/ or sync.  When it times out, my only choice is to restore, but that doesn't fix problem.

    I'm running OS 10.6.8 on my 3.06 GHz iMac Intel Core 2 Duo.   I recently upgraded to iTunes 10.5.2.  I'm not sure when the trouble started but I attempted a restore when the iPod would not play correctly.  It would start to play a file and get stuck on 0 seconds.  If I put the iPod on shufle, it will stall on 0 seconds for 15 seconds or so and then move on to the next track and stall again and so on.   Seemingly randomly, it will play a few tracks but eventually start skipping again.  This will continue until the battery is depleted which is fairly quick since the drive is constantly spinning.
    My 160GB iPod Classic after restore attempts now is up to date with 2.0.4. and of course, nothing works as it should and I would say the skipping issue is worse than ever.  
    When I connect with any of three USB connectors, the iPod mounts to the desktop as a grey/silver disk drive picon exactly like the Macintosh HD picon.   Then Finder will stall for a few minutes- spinning pinwheel.  Somehow, the dock is never affected and I am able to open other applications like Safari or tab through open windows- just no action on the desktop.  Eventually, iTunes automatically opens and Finder becomes responsive again.  At this point the grey drive picon on the desktop becomes a white drive mount picon, but the iPod does not mount in iTunes, yet.  At some point, the iPod attempts to sync, iTunes crashes with the spinning pinwheel and eventually times out and I am prompted to restore the iPod again.  Once restored,  the iPod properly mounts under devices in iTunes and, as I have done this several times, even occasionally changes to the regular iPod picon on the desktop.
    I have restored several times going as far a completely deleting iTunes from my iMac, downloading the latest directly from Apple.com, and attempting to restore again, but to no avail.
    I have even used the disk utility to verify and/or repair my Macintosh HD and iPod. 
    It seems lots of folks are going through this ordeal.  Has anyone had any success in fixing the issue, even if only temporarily?

    one more detail, after a restore, when I attempt to reload music to the ipod, if I try and move, say, 20 files, the transfer seems to work as it should but then stalls on the last file.  Eventually, the status will change to "Updates Files on (my ipod)" a and suggests the iPod is syncing  even though I have the auto sync feature turned off.
    This process eventually works itself out, and seems to take longer relative to the number of files I attempt to transfer.   Once done, howver, if I try and eject and dismount the iPod, iTunes stalls with the spinning pinwheel and I am warned that the iPod is syncing again with the spinning candy cane status bar.     Eventually thisd works itself out and the iPod dismounts from iTunes and the desktop and eventually the iPod is free to disconnect.
    Then if I try and play the music I just transfered, the iPod says there is no music loaded.
    Ideas?

Maybe you are looking for

  • MacBook no longer able to access Time Capsule

    I have a MacBook and a G4 hooked up (wirelessly and via Ethernet respectively)to a 802.11n TC, purchased in Nov/08. Both computers had been backing up faithfully but recently, the MacBook does not recognize the TC. When I run the Airport Utility, it

  • Backing up a PC

    I have a Time Capsule installed; everything is working for my Mac powerbook. Can I use Time Capsule to back up a PC on my network?

  • Forward to JSP in default-webapp

    I have a servlet in a deployed .war file on Sun Java System Web Server 6.1. I have a JSP that is not deployed in any .war file. How do I forward from the servlet to the JSP. I can't figure out how to obtain a context to the jsp pages in the default w

  • Userexit + include + error message

    Hi friends, Actually, there is a userexit, we created a new include in it, say XXX, now when I try to edit some code in this include. I have a trouble to compile or check the error, e.g when I wrote this code: FORM KOBED_973. this is not test ENDFORM

  • My iPad2 is getting hang/frozen.

    My ipad2 is getting hang/frozen in between & i can't do anything. None of the button works. Even the shutdown button dosen't work. I have to left ipad2 for few hrs and after that it becomes normal. Dose anyone is facing this problem? Is this iPad2 is