surveyjs / survey-creator

Scalable open-source survey software to generate dynamic JSON-driven forms within your JavaScript application. The form builder features a drag-and-drop UI, CSS Theme Editor, and GUI for conditional logic and form branching.
https://surveyjs.io/open-source
Other
898 stars 373 forks source link

Inconsistent logo size validation #4675

Closed kmhigashioka closed 10 months ago

kmhigashioka commented 1 year ago

Are you requesting a feature, reporting a bug or ask a question?

Reporting a bug

What is the current behavior?

There is no image size validation when uploading logo from survey header but there is when uploading from property. image

What is the expected behavior?

Applies the 64KB file size validation on header as user can upload > 1MB which breaks the Translation when viewing/editing in Translation.

How would you reproduce the current behavior (if this is a bug)?

  1. Go to https://surveyjs.io/try/reactjs#try-creator.
  2. On the survey header, upload a logo that is more than 64KB in size.

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://surveyjs.io/try/reactjs#try-creator

Test code

your_code_here

Specify your

JaneSjs commented 10 months ago

Hello, We decided to disable the uploaded file size validation. Now, there is no restriction to the size of uploaded images. Please upgrate your Survey Creator library to the most recent version. If you wish to limit the size of uploaded images, you can handle this using the creator.onUploadFile function.

Please feel free to reactivate this thread if you have any further questions.