我曾在 eclipse for android 中工作,但现在我已转移到 android studio,从这里下载 android studio 后:

我在 ubuntu 14.04 64 位上。
需要帮助,提前致谢!!
我在 laravel 的视频托管网站上工作,
在表单中用户可以上传视频文件
{{ Form::file('filename', isset($movie->filename) ? $movie->filename: Input::old('filename')) }}
我的验证器代码如下
$input = Input::all();
$validator = Validator::make($input,
array(
// other validations working fine
'filename' => 'required|mimes:video/mp4,video/x-flv,application/x-mpegURL,video/MP2T,video/3gpp,video/quicktime,video/x-msvideo,video/x-ms-wmv'
));
Run Code Online (Sandbox Code Playgroud)
甚至我已经检查了文件的 MIME 类型以进行测试
dd(mime_content_type($_FILES['filename']['tmp_name']));
Run Code Online (Sandbox Code Playgroud)
它返回video/mp4,即使它在验证检查中。此外,所需的验证也运行良好。那么为什么 Mime 类型验证不能正常工作?谢谢
我是nodeJS的新手,无法在客户端html中设置img标签的src。因为我的节点服务器在端口3000上运行。当我点击http:// localhost:3000时,它工作正常,
下面是我的server.js文件的代码
var app = require('express')();
var http = require('http').Server(app);
var io = require('socket.io')(http);
app.get('/', function (req, res) {
res.sendFile('/var/www/UI-Test/client.html');
});
io.on('connection', function (socket) {
console.log('user joined ');
});
http.listen(3000, function () {
console.log('listening on *:3000');
});
Run Code Online (Sandbox Code Playgroud)
下面也给出了client.html的代码
<html>
<body>
<img src="f1.png" /> <!-- also tried "./f1.png" -->
<script>
var socket = io();
</script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
即使f1.png文件与server.js和client.html位于同一文件夹中,它也会显示404(未找到)错误。顺便说一下,我的操作系统是ubuntu。
提前致谢
android ×1
eclipse ×1
html ×1
javascript ×1
laravel ×1
node.js ×1
php ×1
socket.io ×1
validation ×1