Help uploading files from client side and putting into stream.
gonziis - 1 week ago
I have stream with a field
anomaly.field_type.files. Also I have a form in the front-end with multiple file field, everything works, but I'm not sure how to actually upload the files and assign them to the stream.
die(var_dump($request->file("files"))); in my controller after submitting actually gives me
Illuminate\HttpUploadedFile objects, so that's fine. But I cant find any direct examples how to upload files and assign them to streams, also the default PyroCMS Files module messes with my head. Can you give me some short, but direct explanation? I assume it shouldn't be so complicated.