Question T22119
Visible to All Users

Custom Previews for File Upload Questions

created a month ago

framework:jquery
version:1.11.9

I want to customize the custom rendering after uploading the file, which can preview the file, delete the file, and modify the file icon. At the same time, I don't want to update the version.

Clipboard-File-1.png

Answers approved by surveyjs Support

created a month ago

Hi,
The following demo shows how to implement a custom file preview for the survey-knockout-ui package: View Demo.
Take note that Knockout-free bundles (survey-js-ui) are available with v1.11.12 and newer: Knockout-Free UI Rendering Bundles. I would recommend that you try these new packages: View Demo (Custom Preview).

Please let me know if you have further questions.

    Show previous comments (19)
    T T
    Transfered Licence Owner 5 days ago

      All right,Thanks

      T T
      Transfered Licence Owner 5 days ago

        when survey's mode is 'display'.still can delete file or delete button should be hidden,how to fix this issue.

          Hello,

          I created a separate ticket on your behalf: T22517: File Upload - Custom File Previews - Prevent files from being removed in display mode. We placed it in our processing queue and will process it shortly.