Graphics Library | XM Community
Question

Graphics Library

  • 24 January 2021
  • 7 replies
  • 19 views

Userlevel 3
Badge +8
  • Level 2 ●●
  • 148 replies

Is there a way to capture the file URL from a file upload question and use it to upload the image directly to a specific graphics library folder?


7 replies

Userlevel 3
Badge +8

Can anyone point me to some resources?
I know the library upload graphics api but I can't seem to capture the image from the #dropzone to then trigger the api call to upload it to a specific library.

Userlevel 6
Badge +21

Hello pogi
Below link can help you to get the URL of the uploaded file.
https://www.qualtrics.com/support/survey-platform/survey-module/editing-questions/question-types-guide/advanced/file-upload/#UploadedFileEmail

Userlevel 3
Badge +8

PraDeepKotian_Ugam thanks, but that's not what I need. I'm looking for a way with ajax to capture the file to upload it using the api to a specific graphics library on my account. I don't actually need the file store with the response nor will that help with the work flow that I need unfortunately.

Userlevel 3
Badge +8

So using the API,
var settings = {
"async": true,
"crossDomain": true,
"url": "https://ca1.qualtrics.com/API/v3/libraries/libraryId/graphics",
"method": "POST",
"headers": {
"x-api-token": ""
},
"processData": false,
"data": "{\\"name\\":\\"string\\",\\"folder\\":\\"string\\"}"
}

$.ajax(settings).done(function (response) {
console.log(response);
});
How can I listen to the File Upload question type for a file added? Or, should I use the code formatter of a descriptive text box to build my own form object to upload the file?

Userlevel 3
Badge +8

Will the libraries graphics API accept a file URL?

Userlevel 3
Badge +8

TomG , could you point me in the right direction? Sorry to single you out so much. 🙂

Userlevel 7
Badge +27

pogi - Sorry, I've never used the graphic upload API.

Leave a Reply