Emptying the resources array when the resource is null
Attach a file by drag & drop or click to upload