文件上传和查看 [英] File Upload and View

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

问题描述

我想上传文件,图像,文本文档.上传后,其标题将在一页中查看.如果单击标题,则文件的详细信息将显示在另一页中.我已完成上传所有类型的文件.但是我想查看所有类型的文件.如果图像随后显示图像,则还显示文本文档包含的图像.

请任何人都可以帮助我.....提前感谢

I want to upload files, images, text documents. After upload its titles are view in one page. If we click the title then the details of the file are display in another page. I am completed to upload all types of files. But i want to view all types of files. If images then show the image, if text document then it contains are display also.

Please any one can help me.....Thanks in advance

推荐答案

没有控件,DLL或其他代码段可以让您显示所有类型的文件".有控件和DLL,可让您显示PDF,图像,视频,DOC,XLS,甚至DRG等.
但是,每种方法的工作方式都不相同,其中大多数需要单独付费.

相反,请查看您想要/需要显示的类型,并集中精力于这些类型. 任何文件类型"的目标可能都无法在合理的时间内实现:例如,我有几种内部文件格式,我不准备透露!您应该尝试显示那些内容吗?
There is no control, DLL, or other piece of code which will allow you to display "all types of files". There are controls and DLL''s which will allow you to display PDF''s, Images, Videos, DOC''s, XLS'', even DRG''s and so forth.
However, each works differently, and most of them need to be paid for separately.

Instead, look at what types you want / need to display, and concentrate on those. The aim of "any file type" is probably not achievable within a reasonable timeframe: I for example have several in-house file formats which I am not prepared to divulge! Should you try to display those?


让浏览器选择并允许打开文件.这样,如果浏览器了解文件类型,它将自动打开它-如果不打开,则不会打开该文件,并且将要求用户选择程序.就是这么简单.
Let the browser choose and allow the file to be opened. In this way, if the browser understands the file type it will open it automatically - if not, that file will not be opened and the user will be asked to choose a program. As simple as that.


这篇关于文件上传和查看的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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