{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
839 blob.lastModifiedDate = new Date(); 840 blob.name = name; 841 return blob; 842 }; 843 var GetFileObjectFromURL = function(filePathOrUrl, convertBlob) { 844 GetFileBlobUsingURL(filePathOrUrl, function (blob) { 845 convertBlob(blobToFile(blob, 'testFile.mp4')); 846 }); 847 }; 848 849 CHAT_UI.videoEncodeEnd = function(encodedUri) { 850 console.log('encode end'); 851 console.log('file:'+encodedUri); 852 var fileName = encodedUri.split('/')[encodedUri.split('/').length-1]; 853 //var testFile = new File(decodeURI('file://'+encodedUri)); 854 var FileURL='file:'+encodedUri; -
Master
[nits]
FileURL
-> fileURL -
-
-
845 convertBlob(blobToFile(blob, 'testFile.mp4')); 846 }); 847 }; 848 849 CHAT_UI.videoEncodeEnd = function(encodedUri) { 850 console.log('encode end'); 851 console.log('file:'+encodedUri); 852 var fileName = encodedUri.split('/')[encodedUri.split('/').length-1]; 853 //var testFile = new File(decodeURI('file://'+encodedUri)); 854 var FileURL='file:'+encodedUri; 855 var xhr = new XMLHttpRequest(); 856 xhr.open("GET", FileURL); 857 xhr.responseType = "blob"; 858 xhr.addEventListener('load', function() { 859 console.log(xhr.response); 860 var formData=new FormData(); -
Master
[nits]
// not preferred var formData=new FormData(); // preferred var formData = new FormData();
-
-
-
851 console.log('file:'+encodedUri); 852 var fileName = encodedUri.split('/')[encodedUri.split('/').length-1]; 853 //var testFile = new File(decodeURI('file://'+encodedUri)); 854 var FileURL='file:'+encodedUri; 855 var xhr = new XMLHttpRequest(); 856 xhr.open("GET", FileURL); 857 xhr.responseType = "blob"; 858 xhr.addEventListener('load', function() { 859 console.log(xhr.response); 860 var formData=new FormData(); 861 formData.append("image", xhr.response, fileName); 862 formData.append('sid', CHAT.globalLoginParameter.sid); 863 formData.append('roomId', CHAT.globalLoginParameter.roomId); 864 jQuery.ajax({ 865 async: true, 866 url: CMS_SERVER_URL+"/chatapi/file/upload", -
Master
[nits] space btwn
+
-
-
-
Toggle commit list
-
merged
Toggle commit list