1. <legend id='mLc0C'><style id='mLc0C'><dir id='mLc0C'><q id='mLc0C'></q></dir></style></legend>
    • <bdo id='mLc0C'></bdo><ul id='mLc0C'></ul>

    <tfoot id='mLc0C'></tfoot>
    <i id='mLc0C'><tr id='mLc0C'><dt id='mLc0C'><q id='mLc0C'><span id='mLc0C'><b id='mLc0C'><form id='mLc0C'><ins id='mLc0C'></ins><ul id='mLc0C'></ul><sub id='mLc0C'></sub></form><legend id='mLc0C'></legend><bdo id='mLc0C'><pre id='mLc0C'><center id='mLc0C'></center></pre></bdo></b><th id='mLc0C'></th></span></q></dt></tr></i><div id='mLc0C'><tfoot id='mLc0C'></tfoot><dl id='mLc0C'><fieldset id='mLc0C'></fieldset></dl></div>

  2. <small id='mLc0C'></small><noframes id='mLc0C'>

    1. Codeigniter:MP4 视频上传不起作用

      Codeigniter: MP4 Video Upload not working(Codeigniter:MP4 视频上传不起作用)
        <tbody id='7NOgZ'></tbody>
        • <bdo id='7NOgZ'></bdo><ul id='7NOgZ'></ul>

          1. <small id='7NOgZ'></small><noframes id='7NOgZ'>

            1. <tfoot id='7NOgZ'></tfoot>

              • <i id='7NOgZ'><tr id='7NOgZ'><dt id='7NOgZ'><q id='7NOgZ'><span id='7NOgZ'><b id='7NOgZ'><form id='7NOgZ'><ins id='7NOgZ'></ins><ul id='7NOgZ'></ul><sub id='7NOgZ'></sub></form><legend id='7NOgZ'></legend><bdo id='7NOgZ'><pre id='7NOgZ'><center id='7NOgZ'></center></pre></bdo></b><th id='7NOgZ'></th></span></q></dt></tr></i><div id='7NOgZ'><tfoot id='7NOgZ'></tfoot><dl id='7NOgZ'><fieldset id='7NOgZ'></fieldset></dl></div>
              • <legend id='7NOgZ'><style id='7NOgZ'><dir id='7NOgZ'><q id='7NOgZ'></q></dir></style></legend>

                本文介绍了Codeigniter:MP4 视频上传不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在研究一个问题很长时间,但仍然找不到任何解决方案.

                I am researching on a problem for long time but still could not find any solution.

                我正在使用 codeigniter 上传 mp4 文件.在此之前,我在 config/mimes.php 中为 mp4 添加了 mime 类型.我都试过了:mp4 =>视频/mp4mp4 =>array('video/mp4', 'video/3gpp')

                I am uploading mp4 file using codeigniter. Before that I added mime type for mp4 in config/mimes.php. I tried both: mp4 => video/mp4 and mp4 => array('video/mp4', 'video/3gpp')

                这两种方法在本地服务器上都很完美,但是每当我在 Live 服务器上测试它时,它总是给出相同的错误消息不允许您尝试上传的文件类型.".

                Both of these works perfect in Local server but whenever I test this on the Live server then It always give the same error message "The filetype you are attempting to upload is not allowed.".

                我又尝试了一件事.IE.$config['allowed_types'] = "*";

                I tried one more thing. i.e. $config['allowed_types'] = "*";

                它在本地和在线服务器上都能完美运行.

                It works perfect in both local and online server.

                但我只想要 mp4 视频类型.

                But I want just mp4 video type.

                有人有解决这个奇怪问题的办法吗?

                Anybody have some solution for this strange problem?

                推荐答案

                终于我的问题得到了解决,所以我正在写这个答案.

                Finally I got solution of my Problem so I am writing this answer.

                本地和在线服务器中的大多数 MIME 类型检测是不同的.

                Mostly detection of mime types in local and online server are different.

                在我的例子中,本地服务器将 file_type 设置为video/mp4".但在线服务器将 mime 类型检测为application/octet-stream".

                所以我在我的配置文件夹的 mime 类型列表中添加了数组:

                So I added both in array in the mime type list in my config folder:

                'mp4' =>array('video/mp4', 'application/octet-stream'),

                现在它可以在本地和在线服务器上完美运行.

                Now it works perfectly in both local and online server.

                这篇关于Codeigniter:MP4 视频上传不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  <tbody id='algZZ'></tbody>
                  <bdo id='algZZ'></bdo><ul id='algZZ'></ul>

                      • <tfoot id='algZZ'></tfoot>
                      • <i id='algZZ'><tr id='algZZ'><dt id='algZZ'><q id='algZZ'><span id='algZZ'><b id='algZZ'><form id='algZZ'><ins id='algZZ'></ins><ul id='algZZ'></ul><sub id='algZZ'></sub></form><legend id='algZZ'></legend><bdo id='algZZ'><pre id='algZZ'><center id='algZZ'></center></pre></bdo></b><th id='algZZ'></th></span></q></dt></tr></i><div id='algZZ'><tfoot id='algZZ'></tfoot><dl id='algZZ'><fieldset id='algZZ'></fieldset></dl></div>
                        <legend id='algZZ'><style id='algZZ'><dir id='algZZ'><q id='algZZ'></q></dir></style></legend>

                        <small id='algZZ'></small><noframes id='algZZ'>