将doc,pdf,jpg,png等上传为BLOB [英] Uploading doc,pdf,jpg,png etc as BLOBs

查看:121
本文介绍了将doc,pdf,jpg,png等上传为BLOB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了关于如何上传图片的脚本和示例但是没有线索如何上传doc或pdf等文件?

I''ve found may scripts and examples on how to upload images but don''t have a clue how to upload a file like doc or pdf??

推荐答案

您好。


上传图片几乎与上传任何其他文件的过程相同。唯一的区别是如何在文件发送后验证文件。

http://bytes.com/topic/php/insights/...base-using-php 。

它解释了如何上传任何文件,而不仅仅是图像。
Hi.

Uploading images is pretty much the same process as uploading any other file. The only difference would be how you validate the file once it has been sent.

Check out my article: http://bytes.com/topic/php/insights/...base-using-php.
It explains how to upload any file, not just images.


我在检查输入框中输入的内容时遇到问题,我正在尝试以下工作:
i''m having a problem checking that something is being entered into the input box, i''m trying the below which is now working:
展开 | 选择 | Wrap | 行号


无论是否存在文件,都会传递文件输入。您可以使用检查文件是否已上传与数组一起传递的错误号
The file input is passed regardless of whether there was a file present. You can check if the file was uploaded using the error numbers passed with the array


这篇关于将doc,pdf,jpg,png等上传为BLOB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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