Jump to:

23489 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » How to delete uploaded files upon session expiry?

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 123 Views
  • vwd
    Avatar
    Community Member
    158 Posts

    How to delete uploaded files upon session expiry? Link to this post

    Hi

    A form I have implemented uses UploadField to upload files.

    For a couple of reasons (saving space, not wanting File table to get unnecessarily cluttered, security & privacy) I immediately delete the files upon form submission.

    I also want to ensure that if the user has uploaded files but doesn't complete the submission, that these files will be deleted after a timeout or upon session expiry. How would I go about implementing this please?

    Thank you.
    VWD.

    123 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.