Reputation: 117
I was (and i'm) getting issues with the fields.yaml -> type fileupload, I already put on the $attachOne -> 'upfile' => ['System\Models\File']
but it completely destroys my backend. Probably the problem is on create.htm.
Here is a screenshot -> WITHOUT $attachOne -> 'upfile' => ['System\Models\File']
:=> https://i.sstatic.net/gQQjO.png WITH $attachOne -> 'upfile' => ['System\Models\File']
:=> https://i.sstatic.net/EhABj.png
Upvotes: 1
Views: 141
Reputation: 117
I have solve this problem, on my
create.htm
there was a extra line of code like this <style media="screen"> </style>
. All nice and running now.
Upvotes: 0
Reputation: 973
This is normal. The fileupload
form field type expects a relationship definition. As shown in your own texts, when you have it included, there is no issue. When you remove it, it throws an exception.
Upvotes: 0