LPS-37954 Fix: Move parameters to action URL to able to pass them, if the upload size is bigger than com.liferay.portal.upload.UploadServletRequestImpl.max.size
LPS-37954 Refactor: Remove unused code.
LPS-37954 no need to have two url objects, just make sure to change it only after a call of .toString()
LPS-37954 Keep original order