问题
I have a value stored in a database that holds the actual capacity (capacity size in Megabytes for uploaded files) for a user. I want to validate this before each file within a queue is uploaded, so the maximum capacity isn't surpassed. I'm using Laravel as a framework, and DropZone.js for the uploading and I want to validate against this maximum capacity using the Dropzone methods.
来源:https://stackoverflow.com/questions/29583625/how-to-validate-against-upload-capacity-using-dropzone-js