个人资料图片上传 [英] Profile picture upload
本文介绍了个人资料图片上传的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
II希望用户能够上传图像,并在'images'目录中将其保存为{username} .png,然后将url插入到数据库中。有谁知道我能这样做的方式吗?谢谢
II want users to be able to upload an image, and it will be saved as {username}.png in the 'images' directory, then the url will be inserted into the database. Does anybody know of a way i could do that? Thanks
推荐答案
这里有一个非常好的教程:
http://www.w3schools.com/php/php_file_upload.asp [ ^ ]
A very good tutorials here:
http://www.w3schools.com/php/php_file_upload.asp[^]
这篇关于个人资料图片上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文