Why is my downloaded file is always damaged or corrupted?

后端 未结 5 951
故里飘歌
故里飘歌 2020-12-06 14:42

I have a very weird problem with my download script

it basically

1.gets a file id with "GET" method

2.gets the name and location

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-06 15:16

    That seems allot of code just to force-download, here is a nice function I use all the time. It will handle files over 2GB too.

    
    

提交回复
热议问题