nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.54k stars 4.08k forks source link

Quota webdav properties #13604

Open rullzer opened 5 years ago

rullzer commented 5 years ago

Done

Check quota before uploading

Have new "max-upload-size"

I think it would make sense to introduce a webdav quota property. This would allow clients to check before they upload to a folder if there is enough space.

In a similar matte we could introduce a max-upload-size property for the clients to respect. Huge files (even if chunked) might timeout or put an unreasonable load on the server. So an admin might want to limit upload size to 1GB for example.

feedback: @icewind1991 @MorrisJobke @tobiasKaminsky @marinofaggiana @camilasan

tobiasKaminsky commented 5 years ago

It seems that (at least on Android) there is already support for this: we query quota-used-bytes and quota-available-bytes

rullzer commented 5 years ago

Ah right. Yes we do. Then it is more about the max upload yes

tobiasKaminsky commented 5 years ago

Hm. Seems not that we are using it on Android at all. Can you verify that those values are set correctly on each folder, also shared, external, object storage, etc.? And since when this is working, then I can add it.

tobiasKaminsky commented 5 years ago

@rullzer please clarify which we have to check

szaimen commented 3 years ago

I suppose this issue is still valid? If not, please close this issue!

skjnldsv commented 8 months ago

We know fail in the backend if the proper total length is provided, even for chunks upload. I guess we can close?