Ricardo Cruz
Ricardo Cruz

Reputation: 117

OctoberCMS Fileupload completely destroys my backend

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

Answers (2)

Ricardo Cruz
Ricardo Cruz

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

Samuel Georges
Samuel Georges

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

Related Questions