File upload in JIRA

Thank you for your visiting.

With the URL http://localhost:2990/jira/plugins/servlet/fileUpload?versionId=*’, I can upload the file and visit the result page sussessfully.
But after installing the add-on to test environment, I got a 404 dead link with the similar URL http://IP:8080/plugins/servlet/fileUpload?versionId=*.

I set the base URL using the method applicationProperties.getBaseUrl( ).

How to get a correct link to the servlet ? Thank you.

And I found a similar question posted last year still unresolved.Jira Dead Link Problem.

Finally I use ajax with the same servlet url to complete the file uploading.