开发者

Advice on posting JavaScript generated content to a file for download as CSV

I have some user specific JavaScript generated content I want to post to the server to generate a CSV file that the user can then download.

I have in mind to follow the guidance under Option 3.1 of the jQuery Table to CSV Plugin b开发者_运维百科ut the following occurs to me…

What if 2 or more users are concurrently on the page and using the same functionality? If a generic URL is used for the CSV file (as kunalbabre suggests) is it not possible then that they end up downloading each other's data?

Presumably one should therefore generate a unique URL for the CSV? If so, what methods are best?

Any advice much appreciated.


No. The CSV is generated dynamically in response to the request. The only file on the server is the PHP program. The CSV file doesn't exist until the browser receives the response and saves it to a file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜