需要帮助诊断我网站上失败的图像上传
当用户尝试在我的网站 pushroad.com 上上传照片时,我收到大量无效的数据库条目无法重现问题来诊断它。如果可以,请尝试上传照片,如果失败,请发布详细信息,包括图像大小、图像格式等以及您认为有帮助的任何其他信息。
谢谢!
I'm getting a lot of null'd database entries when users try to upload a photo on my site pushroad.com and I haven't been able to reproduce the problem to diagnose it. If you can, try uploading a photo, and if it fails, post the details including image size, image format, etc and any other info you think will help.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果这对您的应用程序有影响,我会检查 MIME 类型。我记得有一次(IIRC)IE7 为某些图像(image/pjpeg?)发送了一个略有不同的 MIME 类型,这导致我构建的图像上传器出错。
事实上,请参阅这个问题:
stackoverflow.com/questions/115705/why-does-ie7-specify-a-mime-type-of-image-pjpeg-rather-than-just-image-jpeg
I would check the MIME type if this makes a difference to your app. I remember once (IIRC) IE7 sending a subtly different MIME type for some images (image/pjpeg?) that tripped up an image uploader I'd built.
In fact, see this question:
stackoverflow.com/questions/115705/why-does-ie7-specify-a-mime-type-of-image-pjpeg-rather-than-just-image-jpeg
你的目录是可写的吗?
通常,上传失败的首要原因是权限问题。检查一下并确保您设置了合适的设置。
巴里
your directory is writable yes?
Usually, the number one cause of failed uploads is permissions issues. Check that out and make sure that you have the appropriate ones set.
Barry
我尝试将照片上传到您的网站,结果网址为 http://pushroad.com/tags/ r/73042
所以你的网站没有问题
I have try to upload a photo to your website, the result url is http://pushroad.com/tags/r/73042
so there is no problem with your website