上传文件时,我无法显示文件上传内容 [英] I can not get file uploads to show up when I upload a file

查看:131
本文介绍了上传文件时,我无法显示文件上传内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的表格是这样开始的:

< form method =" post" action =" profile.php?

id = 5& formName = my_story_edit.htm" enctype =" multipart / form-data">


< p>电子邮件地址:< br />

< input type = "文本" name =" totalFormInputs [users] [5] [email_address]"

value =" la ****** @ krubner.com" />< / p>


< p>邮政编码:< br />

< input type =" text" name =" totalFormInputs [users] [5] [zip_code]"

value =" 22902" />< / p>


< p>个人形象:< br />

< input type =" file"名称= QUOT; totalFormInputs [用户] [5] [upload_file] QUOT; />< /

p>


奇怪的是,upload_file已经突然从

上传的数组中消失了。当我用print_r命中$ totalFormInputs时,这就是

我得到的:


数组



[用户] =数组



[5] =数组



[描述] =我在新泽西长大。

[email_address] =la******@krubner.com

[zip_code] = 22902

[时间] = 1187380627










为什么文件输入没有出现?


一个月前一切正常,现在已经坏了。


非常感谢任何帮助。

I''ve a form that starts off like this:
<form method="post" action="profile.php?
id=5&formName=my_story_edit.htm" enctype="multipart/form-data">

<p>Email address:<br />
<input type="text" name="totalFormInputs[users][5][email_address]"
value="la******@krubner.com" /></p>

<p>Zip code:<br />
<input type="text" name="totalFormInputs[users][5][zip_code]"
value="22902" /></p>

<p>Personal image:<br />
<input type="file" name="totalFormInputs[users][5][upload_file]" /></
p>

Oddly enough, the "upload_file" has suddenly disappeared from the
uploaded array. When I hit $totalFormInputs with print_r, this is what
I get:

Array
(
[users] =Array
(
[5] =Array
(
[description] =I grew up in New Jersey.
[email_address] =la******@krubner.com
[zip_code] =22902
[time] =1187380627
)

)

)

Why is the file input not show up?

Everything was working fine a month ago, and now it is broke.

Any help is very much appreciated.

推荐答案

totalFormInputs with print_r,这是我得到的




数组



[用户] =数组



[5] =数组



[描述] =我在新泽西长大。

[email_address] = la ** **** @ krubner.com

[zip_code] = 22902

[时间] = 1187380627










为什么文件输入没有显示?


一个月前一切都工作正常,现在已经破了。


非常感谢任何帮助。

totalFormInputs with print_r, this is what
I get:

Array
(
[users] =Array
(
[5] =Array
(
[description] =I grew up in New Jersey.
[email_address] =la******@krubner.com
[zip_code] =22902
[time] =1187380627
)

)

)

Why is the file input not show up?

Everything was working fine a month ago, and now it is broke.

Any help is very much appreciated.


lawrence k写道:
lawrence k wrote:

我有一个像这样开始的表格:


< ; form method =" post" action =" profile.php?

id = 5& formName = my_story_edit.htm" enctype =" multipart / form-data">


< p>电子邮件地址:< br />

< input type = "文本" name =" totalFormInputs [users] [5] [email_address]"

value =" la ****** @ krubner.com" />< / p>


< p>邮政编码:< br />

< input type =" text" name =" totalFormInputs [users] [5] [zip_code]"

value =" 22902" />< / p>


< p>个人形象:< br />

< input type =" file"名称= QUOT; totalFormInputs [用户] [5] [upload_file] QUOT; />< /

p>



奇怪的是,upload_file已经突然从

上传的数组中消失了。当我用print_r点击
I''ve a form that starts off like this:
<form method="post" action="profile.php?
id=5&formName=my_story_edit.htm" enctype="multipart/form-data">

<p>Email address:<br />
<input type="text" name="totalFormInputs[users][5][email_address]"
value="la******@krubner.com" /></p>

<p>Zip code:<br />
<input type="text" name="totalFormInputs[users][5][zip_code]"
value="22902" /></p>

<p>Personal image:<br />
<input type="file" name="totalFormInputs[users][5][upload_file]" /></
p>

Oddly enough, the "upload_file" has suddenly disappeared from the
uploaded array. When I hit


totalFormInputs时,这就是我得到的




数组



[用户] =数组



[5] =数组



[描述] =我在新泽西长大。

[email_address] =la******@krubner.com

[zip_code ] = 22902

[时间] = 1187380627










为什么文件输入不显示?


一个月前一切正常,现在已经坏了。 />

非常感谢任何帮助。
totalFormInputs with print_r, this is what
I get:

Array
(
[users] =Array
(
[5] =Array
(
[description] =I grew up in New Jersey.
[email_address] =la******@krubner.com
[zip_code] =22902
[time] =1187380627
)

)

)

Why is the file input not show up?

Everything was working fine a month ago, and now it is broke.

Any help is very much appreciated.



没有进入现场?如果它是空的,则不会返回任何内容。


什么是print_r(

Nothing entered into the field? If it''s empty, nothing will be returned.

What does print_r(


这篇关于上传文件时,我无法显示文件上传内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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