wisp-gg / frontend

The frontend for WISP Game Panel
https://wisp.gg
MIT License
41 stars 15 forks source link

Possible to upload thing overpassing the disk limit. #409

Closed joti-prime closed 11 months ago

joti-prime commented 1 year ago

Describe the bug

The disk limit only means that you cannot turn on the server but you can continue uploading files, this means that I can be using 1TB of space and have a limit of 1MB, the server will not turn on but I will be able to annoy.

Expected Behavior

It would have to do like the pterodactyl panel, that before uploading a file it would calculate the space and if it exceeded it, it would not let you upload the file.

Actual Behavior

Allowing to kill a server uploading things without limit.

Steps to Reproduce

Just upload files.

Browser Details

chrome (all)

Operating System

windows (all)

Optional additional information

Solve it is important.
larsjarred9 commented 1 year ago

Hi there,

This issue seems like an awesome issue to tackle as part of my college curriculum. I would like to tackle this issue.

I suppose the easiest step would be to check the file size and compare that to the available disk limit as @Joti-prime has mentioned before.

I look forward to receive some input on the matter.

Software-Noob commented 1 year ago

Duplicate of #375