Add X-Delete-At support to FormPost
Bug #1065522 reported by
gholt
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Wishlist
|
Matthew Oliver |
Bug Description
Hello,
Where I can add header X-Delete-At in middleware formpost.py for all the files that are loaded with formpost?
Thanks!
Changed in swift: | |
importance: | Undecided → Wishlist |
Changed in swift: | |
status: | New → Triaged |
Changed in swift: | |
assignee: | nobody → Matthew Oliver (matt-0) |
Changed in swift: | |
status: | Fix Committed → Fix Released |
milestone: | none → 2.1.0 |
To post a comment you must log in.
In my dev environment, I have FormPost being able to set an x-delete-at. I plan to extend it a little further and allow X-Delete-After, so a form can post a file for $x amount of time rather then knowing when it should be taken down.
For X-Delete-At, all you need to do is have another form field with the name of x-delete-at and provide the unix timstamp (epoch). For X-Delete-After it will be the same except you provide a value in seconds.
Once done, all that's left is some testing and then you'll see a patch uploaded. Watch this space.
Matt