ASP上传器图片控件 [英] asp uploader image control

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

问题描述

如果用户未从图像上传器中选择图像,如何上传默认图像?
任何建议都可以.
在此先感谢

how to upload a default image if the user didnt select a image from image uploader??
any suggestions would do.
thanks in advance

推荐答案



在服务器端检查文件提交数据的长度.如果length为0,则从默认图像加载字节(将存储在服务器上的某个位置),然后再存储此数据.

您想在哪里存储文件?在数据库还是文件系统中?

问候
罗伯特
Hi,

on server side check whether length of submitted data of file. if length is 0 than load bytes from default image (which will be stored somewhere on server) and than store this data.

where do you want to store files? in db or file system?

Regards
Robert


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

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