Set publishing resources while development
Move file uploading to partial, add separate action for it, use 2amigos Widget