-
Templates
-
Customization
-
Customize the Survey Creator UI
-
Custom UI Configuration
-
UI Localization
-
Create a Multilingual Form
-
Toolbox Customization
-
Toolbox Categories
-
Hide a Category from the Property Grid
-
Add Custom Properties to the Property Grid
-
Remove Properties from the Property Grid
-
Property Dependencies
-
Modify new Question
-
Toolbar customization
-
Tabs customization
-
Runtime Toolbox Customization
-
Customize Property Editors
-
Create Custom Adorners
-
Manage Survey Header
-
Modify Designer and Test Surveys
-
Manage Image Uploads
-
-
Components
-
Custom Widgets
-
Load/Save Surveys
-
Appearance customization
-
New functionality in Creator V2
Manage Image Uploads
Survey authors can use the Image and Image Picker question types to add images to a form or questionnaire. Images are embedded in the survey JSON schema as Base64 URLs. However, this technique increases the schema size. To avoid this, you can upload images to a server and save only image links in the JSON schema, as shown in this demo.
To implement image upload, handle the onUploadFile
event. Its options.files
parameter stores the images you should send to your server. Once the server responds with an image link, call the options.callback(status, imageLink)
method. Pass "success"
as the status
parameter and a link to the uploaded image as the imageLink
parameter.
This demo uploads images to SurveyJS servers that erase them after a specified time period. We strongly encourage you to use your own servers for image uploads in production.
-
Templates
-
Customization
-
Customize the Survey Creator UI
-
Custom UI Configuration
-
UI Localization
-
Create a Multilingual Form
-
Toolbox Customization
-
Toolbox Categories
-
Hide a Category from the Property Grid
-
Add Custom Properties to the Property Grid
-
Remove Properties from the Property Grid
-
Property Dependencies
-
Modify new Question
-
Toolbar customization
-
Tabs customization
-
Runtime Toolbox Customization
-
Customize Property Editors
-
Create Custom Adorners
-
Manage Survey Header
-
Modify Designer and Test Surveys
-
Manage Image Uploads
-
-
Components
-
Custom Widgets
-
Load/Save Surveys
-
Appearance customization
-
New functionality in Creator V2