Jump to content
We've recently updated our Privacy Statement, available here ×

changes in restricting file upload is not reflecting on server


shreyashi.gupta
Go to solution Solved by kkumlien,

Recommended Posts

I have changed maxFileSize and fileNameRegexp properties from ..WEB-INF/flows/fileResourceBeans.xml and ALLOWED_FILE_RESOURCE_EXTENSIONS property from  

 jasperserver-pro/scripts/resource.locate.js but there is no changes at the server level.

Please anybody could help over the issue.I'm really stuck up over this.

Link to comment
Share on other sites

  • 6 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

Have you tried changing resource.add.files.js instead (in the same folder scripts/bower_components/jrs-ui/src/)? I tried on 6.4.0 and it worked for me.

E.g. in this example I removed PNG as a valid option:file_upload_excluding_png_type.thumb.png.2c5c8178c67c0e6cf2813b0bbff87e19.png

After you've modified the JavaScript, please be sure to re-create the optimized scripts (https://community.jaspersoft.com/documentation/tibco-jasperreports-server-ultimate-guide/v640/customizing-javascript-files), or to use the non-optimized version (by changing the relevant property on the server or adding _opt=false to any URL in JRS).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...