Display save as dialog when downloading a file

Hi,
I want to display a save as dialog when the user downloads a file.
Now I get a dialog where the user can choose to open or save it.
I set these headers:
res.setHeader("Content-disposition", "attachment; filename=" + filnamn);
res.addHeader("Content-Type", "application/force-download");Thanks!

Sorry!
When the user downloads a file I want to open a dialog where the user
can write a filename and then click Save to save the file.
Today I get a dialog where the user first have to choose if he wants to open or save the file.
When he clicks save then the dialog appears that I would want to be displayed.
I hope this clearifies my question.

Similar Messages

  • Filename in Save As dialog when saving PDF file

    I have a web site serving up PDF files. Without going into details, the URLs of the PDFs are not just your basic URL but look simething like this:
    http://www.domain.com/WorkFlowApp/Clients/demo1/secure/Promo%20Cover%20Cool-MedH i.pdf?userId=55b64ad5-28a2-490e-b3d6-4944099a390f#collab=CollabService@http://ww w.domain.com/ICCollab/IC_Service.asmx?WSDL
    In this case the actual filename is "Promo Cover Cool-MedHi.pdf"
    While viewing in Safari (OS X), if the user saves the PDF to their local machine, the Save As dialog comes up and the filename field is automatically populated. The problem is, instead of using just the filename, the field contains this:
    http---www.domain.com-WorkFlowApp-Clients-demo1-secure-Promo%20Cover%20Cool-MedH i.pdf?userId=55b64ad5-28a2-490e-b3d6-4944099a390f#collab=CollabService@http---ww w.domain.com-ICCollab-IC_Service.asmx?WSDL
    I know when performing the same action on Windows using Internet Explorer, the Save As dialog box filename field is populated correctly with just the filename (although it shows up URL encoded as Promo%20Cover%20Cool-MedHi.pdf, which is OK).
    I'd like to be able to force Safari to use just the filename in the Save As dialog box. Has anyone come accross this problem and figured out a solution?

    Hello Ebnul.nao
    I am having this same problemwith trying to work this out.
    Did you succeed in the end?
    I will really appreciate your help if you did
    Kind regards

  • How do I get a "Details" display--as the default--when downloading a file, in the "Enter name of file to save to..." dialog box?

    When I receive an attachment to an email, and I click it and select "Download", I get the "Enter name of file to save to..." dialog box (because I already set the option to "Always ask me where to save files." But the file display always defaults to a "List". At least recently. I don't recall it always doing that. In any case, I want it to default to a "Details" display, in ascending order, as I can then find things sooo much faster that way. (I often use the "Date Modified" tab to bring to the top the most recent version of a file.) I know that I can go to the "View Menu" icon and select "Details", but each time I go into a sub folder while in this dialog box, I have to do that all over again and it wastes a lot of time and attention.
    I did some internet searches but didn't find a way to fix this.

    Thanks for reaching out, glennr.
    The dialog box you are describing is controlled by Windows, not Firefox, so unfortunately Firefox cannot change what you see by default.
    I think your best bet would be to ask on the [http://answers.microsoft.com/en-us/windows/forum/windows_xp?auth=1 Windows support site].

  • How can I turn off the Download pop up Window from displaying when downloading a file?

    How can I turn off the Download pop up Window from displaying when downloading a file?

    To not display the built-in Firefox downloads window, Tools > Options > General tab, un-check "Show the <u>D</u>ownloads window when downloading a file". See: http://support.mozilla.com/en-US/kb/Options+window+-+General+panel
    If you have some other download manager installed, you will need to see the documentation for the download manager.
    <br />
    You have installed plugins with known security issues that should be updated. To see the plugins submitted as part of your question post, click "More system details..." to the right of you original question.
    *Shockwave Flash 10.1 r53
    *Next Generation Java Plug-in 1.6.0_18 for Mozilla browsers
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Shockwave Flash'''
    #*Use Firefox to Download and SAVE to your hard drive from one of the links below; '''<u>the links take you directly to the download and you avoid the "getplus" download manager and "extras" (i.e., toolbars, virus scan links, etc.) on the main Adobe page.</u>'''
    #*SAVE to your Desktop so you can find it
    #*After download completes, close Firefox
    #*Click on the file you just downloaded and install
    #**Note: Vista and Win7 users may need to right-click the installer downloaded and choose "Run as Administrator"
    #**Note: Most browsers other than IE will also get updated with this one download
    #**Note: To update IE, same procedure '''<u>but use IE</u>''' to go: http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_ax.exe
    #*After installation, restart Firefox and check your version again.
    #*'''<u>Download links and other information</u>''':
    #** https://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash
    #** '''<u>or</u>''' you can download, save, then run the manual installers for IE, then for Firefox (and all other browsers) from here: http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #* Also see: http://support.mozilla.com/en-US/kb/Installing+the+Flash+plugin
    #* Also see (if needed): http://kb2.adobe.com/cps/191/tn_19166.html#main_Uninstall
    #'''Update Java:'''
    #* Download and update instructions: https://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    #* After the installation, start Firefox and check your version again.

  • Either there's no "Open or save as"-Popup, when downloading files (although it's set in preferences) or nothing happens when I click "save as". Please help me. I'm using Iceweasel 7.0.

    In my preferences I have enabled:
    - Show the downloads window when downloading a file
    - Always ask me where to save files

    No, I just wonder, if only mods (or something) can close a topic, but ok, I see I can now click "solved it" next to your post. Seems like someone has to post something.^^

  • I am running 4.0.1 and when I download something the Download box stays blank-even though I have selected in General Preferences 'Show the downloads window when downloading a file' AND selected 'Save files to Downloads'....???

    I am running 4.0.1 and when I download something the Download box stays blank-even though I have selected in General Preferences 'Show the downloads window when downloading a file' AND selected 'Save files to Downloads'....???

    In Firefox Options / Privacy be sure "Remember download history" is checked. To see all of the options on that panel, "Firefox will" must be set to "Use custom settings for history".
    To find your OS information, on your Windows desktop, right-click the My Computer icon, choose Properties, under System on that small window is info about your OS.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • When downloading a file, "open" option does not appears, only "save" does

    Before updating to 5.0, when downloading a file, I could select between "Open" and "save". Now I don't have the "Open" option. I need it because of my work and is a must have or it will take to much time to save and then opening them. In normal morning with "open" option took me like 30 minutes. Now it took me 1.5 hours and can't afford to loose that much time.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    A possible cause is that the server sends a wrong response header.
    The server may not comply to RFC 5987 and sends a wrong Content-Disposition:attachment; filename header.
    * https://developer.mozilla.org/en/Firefox_8_for_developers#Network

  • Firefox crashes when downloading huge files

    When downloading huge files like a 4GB DVD image of linux, firefox starts to build up memory usage. After downloading 3GB it takes around 4GB of memory and then crashes since it can't possibly grow any larger. WHY is it doing this? In earlier versions of firefox it created a .part file and stored all data in there. But right now it stores the WHOLE download in memory and then saves it directly to the file. No .part files on the drive.

    I installed an apache webserver for faster local downloading and put a 4GB DVD up.
    First try on Windows7: After 500MB of downloading it stops with a memory load of 1.6GB then it suddenly tells me the download is finished - at 500MB of 4GB. No crash this time but still not the desired result.
    Try on Windows Vista: After 1.5GB of downloading and 1.7GB of memory usage and then the CPU activity jumped to 100% on the core where Firefox executes. Took around 5min then CPU goes down to 2% and it tells me the download finished and starts a virus scan. No crash either. Downloaded only 1.6GB of 4GB
    Maybe it didn't crash this time because the download is too fast. Earlier while downloading from internet it always crashed while downloading debian DVD image. Later I used Internet Explorer to complete the download. I'll install a bandwidth control in my apache and try again over a longer period of time.

  • TS1368 when downloading large files such as videos of television season do you need to turn off autolock to prevent download from halting

    when downloading large files such as videos of a television season do you need to turn off autolock to prevent download from halting? And if so, if the download will take a significant amount of time (not sure how much offhand) how do you prevent burn in from prolonged screen image?

    Among the alternatives not mentioned... Using a TiVo DVR, rather than the X1; a Roamio Plus or Pro would solve both the concern over the quality of the DVR, as well as providing the MoCA bridge capability the poster so desperately wanted the X1 DVR to provide. (Although the TiVo's support only MoCA 1.1.) Just get a third-party MoCA adapter for the distant location. Why the hang-up on having a device provided by Comcast? This seems especially ironic given the opinions expressed regarding payments over time to Comcast. If a MoCA 2.0 bridge was the requirement, they don't exist outside providers. So couldn't the poster have simply requested a replacement XB3 from the local office and configured it down to only providing MoCA bridging -- and perhaps as a wireless access point? Comcast would bill him the monthly rate for the extra device, but such is the state of MoCA 2.0. Much of the OP sounds like frustration over devices providing capabilities the poster *thinks* they should have.

  • When downloading a file, how can I see the download speed ?

    When downloading a file, how can I see at what speed it is downloading a file ?

    Go to the
    '''''[https://addons.mozilla.org/en-US/firefox/ Mozilla Add-ons Web Page]'''''
    (There’s a lot of good stuff here).<BR>
    What you want is a program to show you what you want to see.
    I myself use
    '''''[https://addons.mozilla.org/en-US/firefox/addon/download-status-bar/?src=collection&collection_id=33bf10fa-666d-45a2-9bc9-491ce21671c6 Download Status Bar]'''''.

  • When downloading a file, if I right-click and select new the submenu is not displayed

    I have Firefox 12 installed; running XP SP3. Options/General/Always ask me where to save files is selected. If I download a file and select save file, I will get a save file to dialog. If I right-click in the dialog and select new, there is no submenu displayed. As a consequence, I cannot create a new folder in which to save the selected file. New will simply try to create a shortcut.

    That Save As dialog that you see is part of Windows Explorer, including the contextual menu including "New". So, this sounds more like you may have a problem at a more fundamental operating system level, because Firefox (as far as I know) doesn't do anything, or even can, modify the content of the context menus of an Explorer window.
    Could you provide a screenshot of what you see to make sure we're talking about the same thing here? Thanks!

  • I get the Save As dialog when trying to Save, whether using Command-S or File menu

    When trying to Save a document, I am presented with the Save As dialog. The file name has a serial number added  to the old file name and the default destination is the Documents file. This happens whether I have tried to save using Command-S or using the Save option in the File menu. This started after I upgraded to Mavericks.

    I checked and the files are not stationery pads, Permissions show me as having read and write authority.
    But, when I  opened the files from the finder, the problem disappears and they saved normally. I then removed the files from the Dock and re-placed them in the Dock via drag and drop. The problem re-appears and changes will not save normally. Not being able to use the Dock is inconvenient but at least there is a workaround. Thanks for your help! Before declaring victory, I'd like to watch it for a while for other quirks.

  • I cannot choose 'open' when downloading a file. I can only choose to save it on my computer. What am I to do?

    When I want to download a file, I can only choose to save it on my computer and I don't want to do that all the time. How do I fix this problem?
    == This happened ==
    Every time Firefox opened
    == I had downloaded several files fast after each other

    Use the extension at https://addons.mozilla.org/en-US/firefox/addon/10902/

  • Screen display garbled when downloading a file

    In FF 5 I often get a garbled screen display when dowloading a file (by garbled I mean that the display is broken into numerous rectangles; the display appears to be similar to that of a driver/monitor/card not being compatible). The display will sometimes correct itself if I minimize and then maximize FF, but not always.
    The problem does not occur in IE, Opera, Safari, Chrome, nor in any other program.
    Could a plugin possibly be the cause? I can work around the problem simply by not using FF for downloads, but I wanted to pass along the information if it might be a bug in FF5.
    Here is a screenshot: http://firstimpressions.websitedesigningamarillo.com/firefoxscreenshotcropped.jpg

    Thanks for the info! Yea, I thought my video card was dying when I first saw it. The driver is the latest, and everything else looks ok too.
    Over the past couple of hours I disabled all plug-ins and extensions, and still had the problem. I chose to down-grade to verison 4 which now works fine. Version 3 was also a good choice but I use the HTML validator that requires version 4 (world's absolute best add-on ever for my use).
    I'm guessing that my video card isn't playing nice with FF5, so until I upgrade the card I will stick with FF4. I installed a new theme and now I'm happier than ever with FF. :)

  • My C drive is 19.5 GB. xp sp3 took 5.05 GB.Firefox also installed here . There's no room for new downloaded files.So I changed the save to option in another drive. Still when downloading large files 'low disk space' message shown.

    suppose I want to download a 4 or 5 GB file,in C:/ there is usually 2 or 3 GB left.So I changed the directory of saved files to E:/.Still low space problem occurs and the newly downloaded file is not saved.A low disk space message is shown.Why is this showing?How to resolve this?

    in options under the "general" tab change the download folder,if that does not help change the option to "ask every time".I recommended to use DAP to download your files its great and accelerates your speed quite a lot.
    link: www.speedbit.com

Maybe you are looking for

  • Closing active terminal window with applescript

    I made a very basic script to lock my screen, and I like how it works. Some of my co-workers would also like it but it has one problem. When the script runs, a terminal box pops up at the end saying [process complete]. I can click through this and I

  • Work flow for Goods issue MIGO_GI

    Hi friends, I want to develop a work flow for good issue MIGO_GI  transaction.  Is there any standard work flow this scenario. When I deliver the 4 materials, the Material cost is 100*4 = 400, if the Material cost is greatr than 500, mail should trig

  • Send APDU to the card from applet on the card

    Hi I would like to send an APDU command to the card, from an applet on the actual card, in the same way I do from a PC with a card reader. The applet would first have been triggered by an external application through a card reader. I have seen this d

  • Having trouble inserting a logo into my video

    I am having difficulty inserting a logo into my video. Whenever, I am successful, and I go to play the video, the logo moves out of place. I deleted all of the effects but am still having trouble with it.

  • HT4059 My iBook is missing pages. What can I do to get complete copy?

    My iBook is missing pages. What can I do to get complete copy?