AnsweredAssumed Answered

Select content-type in drag and drop upload

Question asked by joelbitar on May 22, 2014
Is there a way to configure content-types for the drag and drop uploader in the same way as the HTML and Flash uploader is able to select content-type for documents that are being uploaded?

In the Flash uploader a config like:

<blockcode>
contentType = [{
   id: "proj:drawing",
   value: "type.proj_drawing"
},{
   id: "proj:doc",
   value: "type.proj_doc"
}];
</blockcode>

Works fine but when it comes to the drag-and-drop uploader dnd-upload.get.js I'v tried to edit it and adding

<blockcode>
model.contentTypes = [{
   id: "proj:drawing",
   value: "type.proj_drawing"
},{
   id: "proj:doc",
   value: "type.proj_doc"
}];
</blockcode>

Is there a way to have an option for users to select content-type on documents they upload through the dnd-uploader?

Outcomes