• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Delete file after download

#9
Aha, yeah, that'd be it, well done.

I suppose in most cases it would make sense there is no additional output once you send the file, because that would end up in the end of the file on users harddrive.

You only need couple of header() calls to make browser download the file, so you can write your own version of force download function, or alternatively you could write cron job that goes and cleans files off once their old enough to def not be in use anymore.
Reply


Messages In This Thread
Delete file after download - by omid_student - 07-10-2018, 01:04 AM
RE: Delete file after download - by Pertti - 07-10-2018, 01:14 AM
RE: Delete file after download - by omid_student - 07-10-2018, 01:26 AM
RE: Delete file after download - by Pertti - 07-10-2018, 04:25 AM
RE: Delete file after download - by omid_student - 07-10-2018, 05:05 AM
RE: Delete file after download - by Pertti - 07-10-2018, 05:51 AM
RE: Delete file after download - by omid_student - 07-11-2018, 04:50 AM
RE: Delete file after download - by InsiteFX - 07-10-2018, 03:27 AM
RE: Delete file after download - by omid_student - 07-10-2018, 05:04 AM
RE: Delete file after download - by omid_student - 07-10-2018, 05:06 AM
RE: Delete file after download - by Pertti - 07-10-2018, 05:48 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.