How to validate against upload capacity using Drop

2019-09-03 22:28发布

问题:

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.