i have list called SharesList has image column, so i need to make the end user upload image from his/her local pc... please i need any solutions immediately.
var siteUrl = '/deanships/6thgraduation'; var uploadedURL, itemTitle; function updateListItem(itemTitle,uploadedURL) { var clientContext = new SP.ClientContext(siteUrl); var oList = clientContext.get_web().get_lists().getByTitle('SharesList'); var itemCreateInfo = new SP.ListItemCreationInformation(); this.oListItem = oList.addItem(itemCreateInfo); oListItem.set_item('Title', itemTitle); oListItem.set_item('test', uploadedURL); oListItem.update(); clientContext.load(oListItem); clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed)); } function onQuerySucceeded() { alert('Item updated!'); } function onQueryFailed(sender, args) { alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace()); }