dongzhi4073 2011-05-16 00:04
浏览 60
已采纳

图像大小和PHP上传

Thanks for reading this.

Ok here's my situation.

I have a website that let users upload a picture. I want to keep it kinda dumb proof so i tought that users could upload images right from ther digital camera. The problem is that my host have php set to accept a maximum of 2MB file upload. and a picture right out of a Digital Camera is doing about 10MB. How do i get these Jpeg images to shrink in size before getting on the server without making it to complicated for the users??

Could i treat the files with javascript on client side before it is uploaded? Or is there a really user friendly way of getting it done by the client??

Ideas and solutions are welcome. Thanks.

  • 写回答

4条回答 默认 最新

  • dousuohe5882 2011-05-16 00:10
    关注

    You could try using an upload library like http://www.uploadify.com/ or http://swfupload.org/ that use Flash to upload files, which may circumvent the servers upload limit, but if those don't work, you might be stuck.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100