Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted January 25, 201015 yr 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.
January 25, 201015 yr I totally agree. Please see this topic for reference. http://community.invisionpower.com/topic/303084-failed-nothing-to-upload/page__p__1903501&#entry1903501
January 25, 201015 yr 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.
January 26, 201015 yr Author 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:
January 26, 201015 yr 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.
Archived
This topic is now archived and is closed to further replies.