Edit history

Block attachment uploads that would cause the disk to be full & cleanup failed attachment uploaded parts has not been edited, so there are no earlier versions.

Current version | Original by Fl4il
Show

Block attachment uploads that would cause the disk to be full & cleanup failed attachment uploaded parts

Current problem

totally different feature

Proposed change

block an attachment upload when it would cause the disk to be full. and when an attachment fails to upload (diskspace or otherwise) instantly delete the already uploaded data.

Platform

Self-hosting

Additional information

currently you can upload attachments bigger than the available diskspace. even when the upload fails the diskspace still is being used. the users gets a error about uploading the attachment. but then a bit later seaweedfs goes readonly because there is not disk space anymore. and other fluxer systems also stop functioning as there is no diskspace left to write anything. I did this test yesterday as i was wondering what fluxer would do. problem is that there is diskspace still being used by the failed attachment uploads. which i also cannot delete as they (logically) due to the failed upload don't show up in the 'chat'