How we prevent save as alwways .csv file adding .txt file name if I choose the action "open with?"

My download of csv ASP page is to call:

Response.Clear
Response.AddHeader "content-disposition", "attachment; filename = filename.csv ".
Response.ContentType = "Content-Type: text/csv; "charset = utf - 8"

When I click on the link to this ASP page, appears the dialog 'Opening filename.csv' Firefox:

filename.csv
which is a: Text Document

If I choose 'Open with < any Application name >' the file is always opened by the application with a .txt appended to the name of the file, which, in this case, my spreadsheet software prevents opening correctly.

(a) how can I prevent the .txt is added the filename if the OpenWith is used?

(b) is there a way to add a CSV type to the tools-> Options Applications Content Type list to avoid the message "which is a: Text Document"?

This behavior does not occur in Chrome, Opera, Safari or IE.

It was a failure of the server, not Firefox.

ASP should have been:

Response.ContentType = text/csv"; "charset = utf - 8"

Fixed!

Thank you

Tags: Firefox

Similar Questions

  • How to *. ZIP has *. CSV file in the Oracle Directory?

    Hello! How are you doing guys?

    I have a question;

    How to Zip, a CSV file in the oracle directory?

    I use this method, but a mistake;

    Error; Invalid file operation, this line: utl_file.get_raw (v_arquivo_out, strbufferdd);

    ___The Script___

    v_arquivo_out: = utl_file.fopen ('ORA_DIR',-/ oracle/files/ORA/ORADIR /)

    "DOC. CSV', - file name

    "WORLD BANK");

    UTL_FILE.get_raw (v_arquivo_out, strbufferdd);  <-this line a mistake.

    strbufferdd: = UTL_COMPRESS.lz_compress (strbufferdd, 6);

    V_SDIRECTORY: = TO_CHAR (SYSDATE, ' DD_MM_YYYY_HH24.MI.) SS') | "_RETORNA. ZIP';

    psDsc_File: = v_sDirectory;

    v_arquivo_out2: = utl_file.fopen ('ORA_DIR',-/ oracle/files/ORA/ORADIR /)

    psDsc_File,

    'W');

    -as_zip.

    Utl_File.Put_Raw (v_arquivo_out2, strbufferdd);

    UTL_FILE.fclose (v_arquivo_out);

    UTL_FILE.fclose (v_arquivo_out2);

    ___End SCRIPT___

    Help me?

    Thank you to all the world, I have the solution;

    Please see the procedure;

    CREATE OR REPLACE PROCEDURE 'PR_RELAT_CSV '.

    (

    peCod_Prog in DOCUMENT. Type of Cod_Prog %,

    psDsc_File out varchar2

    )

    IS

    -variaveis para land

    v_arquivo_out utl_file.file_type;

    v_separator varchar2 (1): = "";

    v_sDirectory varchar2 (200);

    src_file BFILE.

    v_content BLOB;

    v_blob_len INTEGER.

    v_file UTL_FILE.file_type;

    v_buffer RAW (32767).

    v_amount directory: = 32767;

    v_pos INTEGER: = 1;

    BEGIN

    -DADOS PREENCHIDOS. ABAIXO, CRIAR PREENCHER E O LAND CSV

    V_SDIRECTORY: = TO_CHAR (SYSDATE, ' DD_MM_YYYY_HH24.MI.) SS') |

    ' _RETORNA. CSV';

    psDsc_File: = v_sDirectory;

    v_arquivo_out: = utl_file.fopen ('ORA_DIR',-/ oracle/files/oradir/ora /)

    psDsc_File,

    'W');

    cabecalho - write

    UTL_FILE.put_line (v_arquivo_out,

    "Organize" | v_separator | ' OPTIONS / Options'.

    v_separator | "AP" | v_separator | "CODE" |

    v_separator | 'Description of the PN | v_separator |

    "Station". v_separator | "Initial SN | v_separator |

    "Final SN | v_separator | 'Note ' | v_separator |

    'Pos ' | v_separator,

    (FALSE);

    -write linhas

    / * n : = 0 ; Contador * /.

    for rec_ (SELECT DISTINCT a.*, d.DSC_ITEM, e.COD_PN_MAT

    OF pcm_subestacao one

    LEFT JOIN (select b.cod_prog,

    c.num_arj,

    c.cod_itens,

    c.DSC_ITEM,

    c.COD_SEST_CONJ

    of pcm_desenho b

    INNER JOIN TABLE (fu_pcm_Combinar_Subestacao ('SYSTEM', b.cod_prog, b.num_arj, 0, null, null, null,)) c

    ON b.num_arj = c.num_arj

    and b.cod_prog = peCod_Prog) d

    ON a.cod_sest_conj = d.cod_sest_conj

    INNER JOIN pcm_mat_geral e

    ON e.cod_cemb_mat = a.cod_cemb_estc

    WHERE a.cod_prog = peCod_Prog

    loop of the order of a.num_arj, num_ns_i, num_ns_fn)

    / * n : = n + 1 ; Contador linhas * /.

    UTL_FILE.put_line (v_arquivo_out,

    Chr (34) | Chr (32) | rec_. NUM_ARJ | Chr (32) |

    Chr (34) | v_separator | Chr (34) | Chr (32) |

    rec_. DSC_ITEM | Chr (32) | Chr (34) | v_separator |

    Chr (34) | Chr (32) | rec_. COD_PN_SEST | Chr (32) |

    Chr (34) | v_separator | Chr (34) | Chr (32) |

    rec_. COD_CEMB_SEST | Chr (32) | Chr (34) |

    v_separator | Chr (34) | Chr (32) | rec_. DSC_PN_SEST |

    Chr (32) | Chr (34) | v_separator | Chr (34) |

    Chr (32) | rec_. COD_PN_MAT | Chr (32) | Chr (34) |

    v_separator | Chr (34) | Chr (32) | rec_. NUM_NS_I |

    Chr (32) | Chr (34) | v_separator | Chr (34) |

    Chr (32) | rec_. NUM_NS_FN | Chr (32) | Chr (34) |

    v_separator | Chr (34) | Chr (32) | rec_. DSC_OBS |

    Chr (32) | Chr (34) | v_separator | Chr (34) |

    Chr (32) | rec_. IND_POS | Chr (32) | Chr (34) |

    v_separator,

    (FALSE);

    end loop;

    UTL_FILE.fclose (v_arquivo_out);

    src_file: = BFILENAME ('ORA_DIR', psDsc_File);

    DBMS_LOB. FileOpen (src_file, dbms_lob.file_readonly);

    v_content: = utl_compress.lz_compress (src_file);

    v_blob_len: = DBMS_LOB.getlength (v_content);

    V_SDIRECTORY: = TO_CHAR (SYSDATE, ' DD_MM_YYYY_HH24.MI.) SS') |

    ' _RETORNA. CSV. ZIP';

    psDsc_File: = v_sDirectory;

    v_file: = utl_file.fopen ('ORA_DIR',-/ oracle/files/ORADIR/ORA /)

    psDsc_File,

    "WORLD BANK");

    Everything v_pos< v_blob_len="">

    DBMS_LOB. READ (v_content, v_amount, v_pos, v_buffer);

    UTL_FILE.put_raw (v_file, v_buffer, TRUE);

    v_pos: = v_pos + v_amount;

    END LOOP;

    UTL_FILE.fclose (v_file);

    EXCEPTION

    WHILE OTHERS THEN

    IF UTL_FILE.is_open (v_file) THEN

    UTL_FILE.fclose (v_file);

    END IF;

    LIFT;

    END PR_RELAT_CSV;

  • Adobe flash error: cannot save the document please try to save to a different file name

    Hello

    I am to change a few files fla with my Adobe Flash Professional. Suddenly he stopped to save and gives me an error; Cannot save the document under... Please try to save to a different file name or to another location.

    I changed the location where to save the files, but I still get the same error.

    Is there anyone who knows how to deal with this error?

    Thank you

    zipper.  right click on its icon or start the program and click "Run as Administrator".  Save your fla.

    If that fails: restart your computer, create a new directory on your desktop and save a fla test (for example, named test) to this new directory.  any problem?

  • block all users: I'll be out of town for a few days and I would block all my personal files and folders again, leaving the internet open to all users

    I'll be out of town for a few days and I would block all my personal files and folders again, let the internet open to all users.

    How I do.

    Thanks for any help!

    I'll be out of town for a few days and I would block all my personal files and folders again, let the internet open to all users.

    How I do.

    Thanks for any help!

    You mean that other users do not have their own user accounts?
    They all connect to your own account?

    If they all have their own user account to log on, they can't see your personal files, unless...
    1. your files in public folders.
    2. they have your password to login to your own account.

    So, please clarify.

    t-4-2

  • I need to change the default 'open with' Bridge of photoshop to photoshop CC 2015.  How do I do that?

    I need to change the default 'open with' Bridge of photoshop to photoshop CC 2015.  How do I do that?

    Hi karen,.

    It can get a bit tangled. Bridge delay normally to some think the Finder is the default, and every OS has its own way for you to tell the OS what you say should be the default value. On Mac, it's in the file information dialog box. I think that Windows called something like properties. You can change an extension to open all files with an application in your operating system first, restart Bridge and see if she pays tribute to this choice by double clicking on a file and observing that it opens the right version of PS. normally, it will be. (By default) must also appear after this choice in the list open with contextual (right click on the file you want to open, select open with and find the name of the application in the list).

    If this does not work, you will need to manually choose your file association for the extension of the list next to him in the Bridge preferences > File Associations. Which is normally necessary only when you want to override the default choice of your OS System. For example, maybe you want to bridge to open in PS JPEG files when you double-click it in Bridge, but if you double-click on a file in the Finder/Explorer JPEG, you want to open with Viewer of this system. It will not say it is (by default) in the pop-up list more, but bridge will honor your file associated with the choice of your system.

  • When I click on the sign more to open a new tab. The tab opens with bing pg and I hate bing. How can I stop thiis doesn't happen.

    When I click on the sign more to open a new tab. The tab opens with bing pg and I hate bing. How can I stop thiis doesn't happen. I can find nothing to help even had a computer tech friend check.

    Looks like your pref browser.newtab.url has been changed.

    This extension will reset some prefs to the value default - browser.newtab.url - is covered. See "on this add-on" for more details.
    https://addons.Mozilla.org/en-us/Firefox/addon/SearchReset/

    It will run automatically and then disappear.

  • What kind of image is in a document. INDD so when the file is opened you get the message 'document contains 6 links to sources that are missing' and when you click OK to recreate a link to missing files, the document opens with the images?

    What kind of image is in a document. INDD so when the file is opened you get the message 'document contains 6 links to sources that are missing' and when you click OK to recreate a link to missing files, the document opens with the images? Missing images are not on my computer, but when the document opens the images are there. I can copy and paste the INDD images in Illustrator. Y files/images/I am able to copy and paste the images that have been incorporated into the INDD file in AI of the INDD file? If this is not what type of image am I copy and paste? Can I take the images that I stuck in there and place them in a new INDD document and have the images to reproduce without problems?

    The images could be anything - check the links Panel.

    What you see (and copy) is just the screen preview, not the actual image data.

  • I exported my Premium Pro movie to a .m2v file.  When I try to open a new project so that I can create a DVD file and I can choose the .m2v file, it is grayed out.  Also, if I double click on the .m2v file, it will open s toward the top, but w

    I exported my Premium Pro movie to a .m2v file. When I try to open a new project so that I can create a DVD file and I can choose the .m2v file, it is grayed out. Also, if I double click on the .m2v file, it opens, but will not play and seems to be locked or frozen. What can I do?

    Again, you use "import as" assets or timeline?

  • How can I add a class to the action open a URL?

    I have a symbol and I want to add the action open a URL as a click, but I also want to add a class to this code. The click event will open a lightbox and play a Youtube video. I've added the files js, that I need in my creationComplete area and all I need to do is to add this class to the href attribute.

    That's what I have right now-

    Window.Open ("youtube link", "class = voverlay");

    It does not of course. What Miss me?

    Thank you.

    I found an example: change fiddle - JSFiddle

    (Load 1) 2) jquery.colorbox jQuery - min using the script Panel?

  • How can you save dead MacBook using FireWire for iMac? I can view all the files on iMac, but don't know how to back up before, I reinstall MacBook.

    My MacBook Pro doesn't start then you want to erase and reinstall iOS. Before doing this I want to back up all my files. If I connect to imac via FireWire I can view all the files, but how can I save it it?

    If your MacBook will start in target disk Mode, follow the instructions on how to set up and use...

    Share files between two computers with target - Apple Support disk mode

    But you do not want to share files, just to save them. You can make a "clone", using disk utility. For cloning utility purposes use a program likeSuperDuper! or double clone.

  • How to create a header in csv file

    I m still beginner in Labview, I'm just learning it this week...

    I want to do a data conversion for temperature probe...

    I m having trouble creating a header in the csv file, can anyone help me?

    I am also attaching my csv file, what I wanted to do like this:

    DT (ms) channel 0 channel 1 Channel 2
    0.1 1 2 3
    0.2 4 5 6
    0.3 7 8 9
    0.4 10 11 12

    I also want to know how to make time to count 0 not real time...

    Citras wrote:

    I have to solve the problem, it s quite confusing, I have to use; instead of \t in the separator.

    What is so confusing to this topic?  You have chosen to use the semicolon, so you must explicitly specify the VI to use instead of the default of a tab.

    When I start the program, can I do the dt (ms) count of 0? What I can do is to use the Date/Time Format string, I want Don t the time based on real time count

    You can subtract the current time of the time at the beginning of the program. Use the time to get based on seconds outside of the loop let you time initially and then use it inside to get the current time. Subtract. Note that your loop is clocked by the software, so you won't get the same amount of delta.

    Also: do not hard code paths in the code. What do you think will happen if someone tried to run your VI on a XP machine? This will not work because of the path of the file. Use a control with a default value defined for it.

  • How can I synchronize contacts from csv file to samsung omnia

    do not have outlook on my computer and do not spend $100 to get it.  I want to add my 137 contact to my samsung omnia.  How?  mobile device does not allow to import a csv file, nor does my total access.  I got my info in a file and also in hotmail.  How can I get it in the phone without having to type everything in?

    http://www.Samsung.com/au/consumer/detail/support.do?group=Mobilephone&type=Mobilephone&subtype=megapixelphone&model_cd=SGH-I900XKBXSA&mode=C

    Download the manual on the link above.

    Samsung may be able to help with their product.

    See you soon. Mick Murphy - Microsoft partner

  • How to save photos in a new file, name it and get the pictures in this file

    I have photos that have been sent to me in an e-mail. I want to save them and create a new file in Windows Live Photo
    Gallery. I right-click and SAVED AS... then went to MY... and under some PICTURES under photos put my cursor
    to open a NEW CASE. He did open an empty folder and not of uploaded photos.

    What I am doing wrong? I want to save the photos, open a new folder/file, name and save the pictures of
    enamel in the new folder/file. How to achieve this?

    Thank you.
    Gilenya

    Gilenya,

    After you create a new folder, you must go inside this folder to save your photos.  I'll bet that you created the new folder, and then you click OK (or save), which caused the pictures save a level upwards in the folder that you created.
  • How to import blackBerry smartphones. CSV file using Desktop Manager 4.6?

    Hello

    I'm new to Blackberry and I recently bought.  I exported my cell phone contact into a .csv file?

    Please tell us how to import. CSV file using Desktop Manager 4.6?

    I used

    Hi tahir, you must import the csv file into outlook first use and after outlook synchronization with desktop Manager.

  • How stop on VMs by reading a CSV file or right next to the cluster

    Hello

    I have the CSV with the following headers: 'Name', 'Cluster', 'host ESX","data store ".

    This csv lists all virtual machines powered in a cluster of XYZ.

    How to read the CSV file and shudown all virtual machines?

    or how can I stop the engine on the virtual machines in a cluster XYZ?

    Thanks for your help,

    To stop all the vm under tension is cluster xyz, you can do:

    Get-Cluster-name xyz | Get - VM | Where-Object {$_.} PowerState - eq "Receptor"} |

    Stop-VMGuest-confirm: $false

Maybe you are looking for

  • Get the error message when you try an upgrade to Vista on Satellite Pro U200

    HelloWhen I upgraded my Satellite Pro U200 to Vista (original CD using Toshiba), I couldn't install Config Free program. When I want to install it, I get the message 'the installation image is not corrcet' ideas for this problem? Thank you

  • How can satellite P300-156 - I clean it?

    Don't clean my laptop inside, but I did not now what live I have to remove.If someone take the back cover of any P300 to clean the fans, maybe send me photo or instructions, I have to do step by step. Thank you very much. PS:Sorry for English has som

  • Pavilion 6510f: add memory to HP 6510f

    We wamt to add memory increases from 4 to 8 GB.  Is it compatible with my HP 6510f part

  • 14-r000ne core i5 HP laptop: battery

    my laptop model is HP Notebook PC 14-r000ne core i5. Should I leave my laptop plugged in All The Time even after that that it is fully charged?

  • Problems with the crop angle slider

    Whenever I go to "crop and straighten" and click on the 'Angle' slider it automatically adjusts the angle of my photo to 0.53 - 0.53 or slightly cultures it as well. It's very annoying and no matter what I I it retouching images still happens. I can