文件上传缩略图问题 [英] File Upload Problem with Thumbnails

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

问题描述

我有一个非常简单的文件上传脚本,它会在上传时创建文件(jpg)的缩略图。这适用于小图片,

但是,如果我尝试上传大约1mb的文件缩略图

dosen''t。任何想法?

感谢您的任何建议。

解决方案

ca *********** @ yahoo.co.uk schrieb:


我有一个非常简单的文件上传脚本,它会在上传时创建文件(jpg)的缩略图。这适用于小图片,

但是,如果我尝试上传大约1mb的文件缩略图

dosen''t。任何想法?

感谢任何建议。



也许你的php.ini中的post_max_size设置为1M?


不,post_max设置为8M

谢谢


3月26日,15日:06,callieandm ... @ yahoo.co.uk

< callieandm ... @ yahoo.co.ukwrote:


不,post_max设置为8M

谢谢



建议发布你的代码以获得更好的答案。

你是否使用exif数据来创建拇指,也许更大的jpgs

没有那些信息等等。这就是猜测。


I have a very simple file upload script which creates a thumbnail of
the file (jpg) upon uploading. This works fine with small images,
however, if i try to upload a file over about 1mb the thumbnail
dosen''t show. Any ideas ?
Thanks for any advice.

解决方案

ca***********@yahoo.co.uk schrieb:

I have a very simple file upload script which creates a thumbnail of
the file (jpg) upon uploading. This works fine with small images,
however, if i try to upload a file over about 1mb the thumbnail
dosen''t show. Any ideas ?
Thanks for any advice.

Maybe post_max_size is set to 1M in your php.ini?


No, the post_max is set at 8M
Thanks


On 26 Mar, 15:06, "callieandm...@yahoo.co.uk"
<callieandm...@yahoo.co.ukwrote:

No, the post_max is set at 8M
Thanks

advice is to post your code for better answers.
Do you use exif data to create the thumb, perhaps the larger jpgs
don''t have that info, etc.. just guesses at this point.


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

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