The easy way to do this is with a config setting for the max number of csv lines. Trapping the out of memory error is super-hard I think, and probably not reliable.
-- You received this bug notification because you are a member of Mahara Core, which is subscribed to Mahara. https://bugs.launchpad.net/bugs/823048 Title: Uploading new users via CSV gives generic error message Status in Mahara ePortfolio: New Bug description: When you attempt to upload a lot of users via CSV and the upload is not made, you only receive a generic error message that doesn't give you the reason why the upload failed. When a certain server limit is reached, in some cases 100 users, the upload doesn't proceed so that the process does not take up all the processing power. The admin should be made aware of that and the error message should be more specific. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/823048/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-core Post to : [email protected] Unsubscribe : https://launchpad.net/~mahara-core More help : https://help.launchpad.net/ListHelp

