I need to change the file name (not the file, only the name metadata) when uploading to the sharepoint site.
I realized that it would be easy enough to change the html attribute in javascript, rather than playing with the Sharepoint backend. So when I upload a file, it changes the name of the file (not the data)
something like that:
function PreSaveAction(){
var file = document.GetElementById('fileupload1');
file.files[0].name='ChangedName.tmp'
return true;
}
Is this impossible due to the nature of the attributes of the blocked entry = 'file'?
source
share