Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
SJ77 Posted April 23, 2020 Posted April 23, 2020 Big files found in my uploads folders. If these are unfinished Plupload chunks then shouldn't IPS system be deleting these?
bfarber Posted April 24, 2020 Posted April 24, 2020 Yes those look like partial upload files. Where do you store your attachments and Downloads files? Locally or S3?
SJ77 Posted April 24, 2020 Author Posted April 24, 2020 (edited) 2 hours ago, bfarber said: Yes those look like partial upload files. Where do you store your attachments and Downloads files? Locally or S3? Locally. And every month I end up with a bunch of this junk. I could save a lot of disk space by deleting it. @bfarber am I ok to delete this stuff? Better question, why doesn't an IPS task clean out this stuff? Any orphan file whatever in these folders should be wiped in my opinion. Edited April 24, 2020 by SJ77 CoffeeCake 1
EmpireKicking Posted April 24, 2020 Posted April 24, 2020 How big is the folder then LOL it can add up over time SJ77 1
CoffeeCake Posted April 24, 2020 Posted April 24, 2020 Those are enormous files. I would assume the upload of media files like videos would be the likely culprit. While you could probably safely write and schedule a cronjob script removing files that are older than X days as likely no longer being an upload in progress, I would agree with @SJ77 that there's an expectation that IPS would be applying some logic that would recognize when an upload had been stopped or aborted and clean up after itself. SJ77 1
bfarber Posted April 24, 2020 Posted April 24, 2020 Have you overridden your temporary directory in your constants.php file? define( 'TEMP_DIRECTORY', ... ); Normally the files you are referring to are written to the system temporary directory which would be automatically cleaned by the OS as needed. I expect you've overridden where temporary files are located and that explains why you are seeing these. I can't reproduce any issues in local testing presently. Actually I think I just managed to reproduce so I'm taking a closer look at what we can do. SJ77 and Hatsu 2
SJ77 Posted April 24, 2020 Author Posted April 24, 2020 2 hours ago, bfarber said: Have you overridden your temporary directory in your constants.php file? define( 'TEMP_DIRECTORY', ... ); Normally the files you are referring to are written to the system temporary directory which would be automatically cleaned by the OS as needed. I expect you've overridden where temporary files are located and that explains why you are seeing these. I can't reproduce any issues in local testing presently. Actually I think I just managed to reproduce so I'm taking a closer look at what we can do. Yeah, I have not overridden my temp directory. Thank you for looking into this. I can save A LOT of disk space by removing these chunks
SJ77 Posted April 25, 2020 Author Posted April 25, 2020 I guess I can just manually delete this stuff without harm then?
bfarber Posted April 27, 2020 Posted April 27, 2020 It would cause a current file upload to fail if one of the chunks was still "active", but otherwise yes. SJ77 1
Recommended Posts