在Laravel 4中测试文件上传时正确的邮递员设置? [英] Correct Postman Settings when testing file uploading in Laravel 4?

查看:41
本文介绍了在Laravel 4中测试文件上传时正确的邮递员设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道使用Postman Extension for Chrome在Laravel 4应用中测试文件上传时要配置什么设置吗?

Does anybody know what settings to configure when using Postman extension for Chrome for testing file uploading in a Laravel 4 app?

$file = Input::file('media');
var_dump($file);

返回null.

推荐答案

原来要检查您的PHP.ini设置,然后重新启动apache和PHP. 我正在测试的视频文件超出了我的配置中的POST和上传大小限制,因此得到了结果.

Turns out check your PHP.ini settings and restart apache and PHP. I was testing video files which exceeded the POST and upload size limits in my configuration, hence the results.

这篇关于在Laravel 4中测试文件上传时正确的邮递员设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆