dongxiao9583 2019-04-09 16:17
浏览 82

PHP文件上传(表单)不适用于webserver(本地工作在XAMPP上)

in my Web-Project there´s a file upload form which is only working if I run it on my local XAMPP (Windows) Server. As soon as I deploy it on my Web Server (Linux / Plek), the upload does not working anymore and throw the following exeption:

Notice : Undefined index: formUploadFile in /var/www/vhosts/business-mates.com/httpdocs/mitglied/includes/easyAccounting/4.php on line 258

I have already proofed the php settings (max upload size and max post size). If I do an var_dump from the $_FILES Variable, there´s nothing in, so the file wasn´t uploaded:

array(0) { }

There´s the form:

<form method="post" enctype="multipart/form-data">
        <input type="hidden" id="formUpload" name="formUpload">
        <input type="file" name="formUploadFile" required>
        <label for="ds" >Hiermit willige ich ein, dass die eingegebenen Daten zur Bearbeitung meines Anliegens gespeichert und verarbeitet werden. Folgende Daten werden an die EK Frachtenservice übermittelt: Alle Daten welche im Formular angegeben sind.
            <input type="checkbox" id="ds" name="ds" required>
            <span class="checkmark"></span>
        </label>
        <input type="submit" value="Antragsformulare hochladen" name="submit" id="send">
    </form>

The expected result is, that the file is located / uploaded in $_FILES as well as it is on my local XAMPP-Server.

Thanks for your suggestions in advance Christian

  • 写回答

1条回答 默认 最新

  • dongni3854 2019-04-09 16:51
    关注

    Thanks RadicalDingos,

    that was the issue.

    What a fool I am...

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器