Hello!

Laravel project.
There is a form where one of the inputs is a field with the file type. Files of pdf, doc, docx, ppt, pptx type should be downloaded. Accordingly, there is a validation for file types:

$rules = array( 'cv' => 'required|mimes:pdf,doc,docx,ppt,pptx' ); 

Is it possible to somehow check that the download has not been interrupted by the user and the file has been completely downloaded and ready to be sent?

  • By file size? The browser, as I recall, sends size information. Also, although I'm afraid to be stupid, maybe md5? - Mikhail Naletov

1 answer 1

Option js javascript (there are many libraries) there is a good Dropzone library