{"action":"closed","issue":{"url":"https://api.github.com/repos/SAP/openui5/issues/786","repository_url":"https://api.github.com/repos/SAP/openui5","labels_url":"https://api.github.com/repos/SAP/openui5/issues/786/labels{/name}","comments_url":"https://api.github.com/repos/SAP/openui5/issues/786/comments","events_url":"https://api.github.com/repos/SAP/openui5/issues/786/events","html_url":"https://github.com/SAP/openui5/issues/786","id":126421909,"number":786,"title":"Using sap.m.UploadCollection.setUploadUrl() not possible if instantUpload=false ","user":{"login":"Frank683","id":14088575,"avatar_url":"https://avatars.githubusercontent.com/u/14088575?v=3","gravatar_id":"","url":"https://api.github.com/users/Frank683","html_url":"https://github.com/Frank683","followers_url":"https://api.github.com/users/Frank683/followers","following_url":"https://api.github.com/users/Frank683/following{/other_user}","gists_url":"https://api.github.com/users/Frank683/gists{/gist_id}","starred_url":"https://api.github.com/users/Frank683/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frank683/subscriptions","organizations_url":"https://api.github.com/users/Frank683/orgs","repos_url":"https://api.github.com/users/Frank683/repos","events_url":"https://api.github.com/users/Frank683/events{/privacy}","received_events_url":"https://api.github.com/users/Frank683/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SAP/openui5/labels/approved","name":"approved","color":"FFBF7F"},{"url":"https://api.github.com/repos/SAP/openui5/labels/documentation","name":"documentation","color":"AE00FF"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-13T13:50:23Z","updated_at":"2016-03-27T21:38:56Z","closed_at":"2016-03-27T21:38:55Z","body":"**OpenUI5 version:** 1.32.9\r\n\r\n**Browser/version (+device/version):** all\r\n\r\n**Any other tested browsers/devices(OK/FAIL):** not browser related\r\n\r\nAccording to the source code, it is not possible to change the upload URL of an UploadCollection if instantUpload is disabled.\r\n\r\n```javascript\r\nUploadCollection.prototype.setUploadUrl = function(sUploadUrl) {\r\n\t\tif (!this.getInstantUpload()) {\r\n\t\t\tjQuery.sap.log.info(\"As property instantUpload is false it is not allowed to change uploadUrl at runtime.\");\r\n\t\t}\r\n```\r\n\r\nPlease explain the reasons, maybe enhance the documentation of setUploadUrl, or better, make it work.\r\n\r\nHow would you recommend to solve this?\r\n\r\nI have a page with a NavContainer. On several pages within this container information is entered and as last step files can be selected in the UploadCollection. When I finally click \"save\" a new entity is created on the server by using the create method of v2.ODataModel. Now that I know the entity key which is generated on the server side I set the upload url of the UploadCollection according to the entity path .....sap/opu/odata/ZMYSVC/MyEntity('newKeyValue')/Attachments?$value\r\n\r\nSince I can't change the upload Url after the control has been created, I can't make this approach work.\r\n\r\n"}}