input上传歌词文件用什么类型呢

input上传歌词文件用什么类型呢,网上找了半天也没找到,问了好多人没办法,

    <input type="file" accept=".lrc">

lrc是英文lyric(歌词)的缩写,被用做歌词文件的扩展名。以lrc为扩展名的歌词文件可以在各类数码播放器中同步显示。LRC 歌词是一种包含着“*:*”形式的“标签(tag)”的、基于纯文本的歌词专用格式。最早由郭祥祥先生(Djohan)提出并在其程序中得到应用。这种歌词文件既可以用来实现卡拉OK功能(需要专门程序),又能以普通的文字处理软件查看、编辑。当然,实际操作时通常是用专门的LRC歌词编辑软件进行高效编辑的。

歌词文件一般是lrc,但是很多时候我们可以利用格式制定自己的歌词文件,可以是.cc或者其他类型,只要你的程序可以读写,那么就可以适用。

可以使用字符串类型,进行上传

就是文本文件啊,和txt差不多

代码如下,望采纳


<input type="file" accept="audio/*">

与普通文件一样,可以用file类型。
请采纳,十分感谢!


  <input type="file">

前端上传都type=file ,上传后转成二进制流转到后端,主要看看后端怎么解析,怎么使用这些歌词文本

文本吧一般是

歌词和字幕 应该都是lrc

<input type="file" accept=".lrc">

<input type="file">

文件格式不限

*.3gpp audio/3gpp, video/3gpp
*.ac3 audio/ac3
*.asf allpication/vnd.ms-asf
*.au audio/basic
*.css text/css
*.csv text/csv
*.doc application/msword
*.dot application/msword
*.dtd application/xml-dtd
*.dwg image/vnd.dwg
*.dxf image/vnd.dxf
*.gif image/gif
*.htm text/html
*.html text/html
*.jp2 image/jp2
*.jpe image/jpeg
*.jpeg image/jpeg
*.jpg image/jpeg
*.js text/javascript, application/javascript
*.json application/json
*.mp2 audio/mpeg, video/mpeg
*.mp3 audio/mpeg
*.mp4 audio/mp4, video/mp4
*.mpeg video/mpeg
*.mpg video/mpeg
*.mpp application/vnd.ms-project
*.ogg application/ogg, audio/ogg
*.pdf application/pdf
*.png image/png
*.pot application/vnd.ms-powerpoint
*.pps application/vnd.ms-powerpoint
*.ppt application/vnd.ms-powerpoint
*.rtf application/rtf, text/rtf
*.svf image/vnd.svf
*.tif image/tiff
*.tiff image/tiff
*.txt text/plain
*.wdb application/vnd.ms-works
*.wps application/vnd.ms-works
*.xhtml application/xhtml+xml
*.xlc application/vnd.ms-excel
*.xlm application/vnd.ms-excel
*.xls application/vnd.ms-excel
*.xlt application/vnd.ms-excel
*.xlw application/vnd.ms-excel
*.xml text/xml, application/xml
*.zip aplication/zip
*.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

<input type="file" accept=".lrc">

或者

<input type="file">

都行,最重要的是上传的这个文件你能解析,后台加个判断吧。