საიტის გასაუმჯობესებელი სამუშაოების მიმდინარეობისას, შესაძლებლობების ნაწილი შეიზღუდება. თუ სტატიით ვერ მოახერხებ ხარვეზის გამოსწორება და შეკითხვის დასმა გსურთ, ჩვენი მხარდაჭერის გუნდი დაგეხმარებათ @FirefoxSupport გვერდის მეშვეობით Twitter-ზე და /r/firefox განყოფილებაში Reddit-ზე.

ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში მხარდაჭერის საიტზე. აქ არასდროს მოგთხოვენ სატელეფონო ნომერზე დარეკვას, შეტყობინების გამოგზავნას ან პირადი მონაცემების გაზიარებას. გთხოვთ, გვაცნობოთ რამე საეჭვოს შემჩნევისას „დარღვევაზე მოხსენების“ მეშვეობით.

ვრცლად

downloading csv file does not ask for where to store file

  • 2 პასუხი
  • 2 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 3 ნახვა
  • ბოლოს გამოეხმაურა Astridr

Firefox is set to "Always ask me where to save files".

I have a WebService from which to download a download.csv file via a POST request (must be a POST request and not a GET request due to data issues). I'm using jquery.fileDownload.js in the Website to achieve this. When pressing the download button, the screen 'Opening download.csv' opens with the option 'Save File' preset. After pressing OK, an explorer window should occur to be able to choose the file location. But it is NOT shown. Instead nothing more happens.

What could be the problem? P.S.: in other browsers it works fine.

Firefox is set to "Always ask me where to save files". I have a WebService from which to download a download.csv file via a POST request (must be a POST request and not a GET request due to data issues). I'm using jquery.fileDownload.js in the Website to achieve this. When pressing the download button, the screen 'Opening download.csv' opens with the option 'Save File' preset. After pressing OK, an explorer window should occur to be able to choose the file location. But it is NOT shown. Instead nothing more happens. What could be the problem? P.S.: in other browsers it works fine.

გადაწყვეტა შერჩეულია

Hello gnittala,

thanks for your response. 1. MIME type is set correctly. 2. When using this config, the file is downloaded correctly.

Now I found out, what was the problem: the jquery.fileDownload.js plugin was deleting the internally used iframe too early, so that the explorer window could not be displayed. Keeping the iframe longer (at least until explorer window is shown, or easier reuse it in next download call) solves the problem.

Astridr

პასუხის ნახვა სრულად 👍 0

ყველა პასუხი (2)

Hello,

Can you please check the following 1. The MIME type of the CSV file being pushed from the webservice 2. If you have set FF preferences to always download the CSV file to a specific location (Firefox -> Preferences -> General -> Downloads)

Once we are sure that the file is indeed getting downloaded, then the next step would be to enable the user to get the prompt for the location to save the file in.

Thank you

შერჩეული გადაწყვეტა

Hello gnittala,

thanks for your response. 1. MIME type is set correctly. 2. When using this config, the file is downloaded correctly.

Now I found out, what was the problem: the jquery.fileDownload.js plugin was deleting the internally used iframe too early, so that the explorer window could not be displayed. Keeping the iframe longer (at least until explorer window is shown, or easier reuse it in next download call) solves the problem.

Astridr