简单解决新浪SAE无法上传文件的问题,新浪sae无法上传文件
今天给网站后台增加一个上传文件的功能,结果出现BUG,提示未选择上传文件。
以下是代码部分。
<form method="post" action="attached.php?action=upload_post" enctype="multipart/form-data"> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td><input type="file" name="attaFile" id="attaFile" /> </tr> <tr> <td valign="bottom" height="50"><button type="submit" id="attaBtn">确定</button></td> </tr> </table> </form>
检查半天感觉代码也没有问题啊,怀着试试看态度把 name="attaFile" 改成 name="attafile" 就是大写F改成小写,结果上传成功了。
就这个问题浪费了半天时间,我也是醉了,不知道是SAE的问题,还是所有服务器都这样。
以上所述就是本文的全部内容了,希望大家能够喜欢。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Atom editor mac version download
The most popular open source editor

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.
