c# how to make firefox download file and not open up the link in a tab ?

  • Thread starter Thread starter elfenliedtopfan2
  • Start date Start date
E

elfenliedtopfan2

Guest
ok i have been making a windows form app that at the end loads to files


one file.osgjs

two model_file.bin

i need the file one to open witch it does fine but the model.bin file i want to auto download does it by default on chrome firefox opens it up in a tab like so

87auxAD.png


but in google chrome and other browsers it just auto downloads it and not sure how i can make firefox do the same i been looking up settings and all that but no luck the code i use is simple one line of code to get it to download on chrome

System.Diagnostics.Process.Start(url);


and that works fine on other browsers but firefox it seems to load the file instead of downloading it automaticly is there a way to force firefox to auto download it instead of loading it in a tab

thanks in advance elfenliedtopfan5

Continue reading...
 
Back
Top