 				text = """
 					<div class='upload-preview'>
 						<video  style="width: 100%;" controls="controls">
-							<source src="#{fileContent}" type="video/webm">
+							<source src="#{preview}" type="video/webm">
 							Your browser does not support the video element.
 						</video>
 					</div>

		callback ev.target.result, file

	reader.readAsDataURL file

readAsArrayBuffer = (file, callback) ->
	reader = new FileReader()

			swal.close()
			return

		if not RocketChat.fileUploadIsValidContentType file.file.type
			swal
				title: t('FileUpload_MediaType_NotAccepted')
				text: file.file.type || "*.#{s.strRightBack(file.file.name, '.')}"
				type: 'error'
				timer: 3000
			return

		if file.file.size is 0
			swal
				title: t('FileUpload_File_Empty')
				type: 'error'
				timer: 1000
			return

		getUploadPreview file, (file, preview) ->
			text = ''

			if file.type is 'audio'
				text = """
					<div class='upload-preview'>
						<audio  style="width: 100%;" controls="controls">
							<source src="#{preview}" type="audio/wav">
							Your browser does not support the audio element.
						</audio>
					</div>
