FileInput widget and DynamicRelations issue: images not being uploaded.

Web Tips Q & ACategory: Krajee PluginsFileInput widget and DynamicRelations issue: images not being uploaded.
gdiazderadaa asked 1 year ago

Hi there, I’m trying to use FileInput widget with synatree DynamicRelations which basically allows you to add on the fly child related models (let’s say B) when editing the parent model (A). For each B model added, an inline form is rendered, displaying properly a FileInput widget. The problem is that when I submit the form, the files are sent in the $_FILES array and can’t figure out how to process it, as the following line is not returning anything at all: $image = UploadedFile::getInstance($this, ‘imagen’); Note that I’m not using multiple upload, each B model has only one image related. Thanks in advance!

Login or register to contribute or comment.

Login   Register