AndyF Posted January 25, 2010 Posted January 25, 2010 Suggestion: I was wondering if its possible to somehow prevent the "nothing to import" message when the .xml (specifically, the image xml) exceeds the limits. I'm assuming its because in the few cases I've seen the xml is larger than the upload_max_filesize in php, rather than the post_max being exceeded. The message is not (quite) true from what I gather it is correct in that IPB does not "see" the file as it has not got that far with it, but I wonder if its possible to somehow examine the file size and then perhaps fail with a different error instead so the admin is more aware of the reason for the failure to import. If your server's upload limit is set to the usual setting of 2mb, and your xml is 2.2mb it will fail. I've probably not explained this too well. :unsure: , at the moment the sensible work around is for the supplying skinner to export the image xml without some of the larger images to keep the filesize down, then have them added manually later.
DawPi Posted January 25, 2010 Posted January 25, 2010 +1. I saw many times issues like this and I had to constantly explain it. :)
Olivier Turbis Posted January 25, 2010 Posted January 25, 2010 I totally agree. Please see this topic for reference. http://community.invisionpower.com/topic/303084-failed-nothing-to-upload/page__p__1903501&#entry1903501
bfarber Posted January 25, 2010 Posted January 25, 2010 I don't think it's possible as I recall. With PHP, you just get an empty FILES array, as if nothing was uploaded. Not a lot we have to work with there.
AndyF Posted January 26, 2010 Author Posted January 26, 2010 Ah OK. I think I was hoping we could have somehow determined the likely cause of this from examining the file size > upload_max_filesize etc and displaying a different error. If there's no practical way of doing it then no problem then. :thumbsup:
bfarber Posted January 26, 2010 Posted January 26, 2010 Without looking, I can't remember if PHP logs an error in the $_FILES array or something. My memory must be failing me in my old age.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.