Better way to handle massive files? #56
-
Hello, I am working on a project that uses large files however it just occured to me that anyone anywhere can upload these very large files as well as the legitimate users, Currently, my global filepond config is set to: 'validation_rules' => [
'required',
'file',
'max:8589934592',
] I was wondering if there was any better way to handle this, for example maybe specify a specific endpoint that I can upload very large files to instead of the default route? all help appreciated, thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
@Lexian-droid first use filepond's frontend file size validation. Also, did you try chunk upload for large file upload? If you do, then set the max file size in config to max chunk size you wish to allow for large file uploads. Non-chunked upload will respect the max file size as well. There is also controller level validation available before you allow a user to move the file to permanent storage, see here. |
Beta Was this translation helpful? Give feedback.
See filepond's
chunkUploads
implementation here.Edit: What I meant by the above is that you should use
chunkUploads
true when initiating filepond.