Datatype upload should not use required attribute and add opacity when a document is not published