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

(#4996) Feature Open: Under consideration self-hosting

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'

Comments

Sign in with Fluxer to comment and vote.

No comments yet.