feat: async CSV user import#1174
Conversation
f52022a to
ecb0fc3
Compare
|
I can review / test this later. What I saw: it's english-only. It would be nice to make this translatable; pattern would be something like: JS SIde: Also, it would be good to have a sample CSV somewhere in |
|
I've added the translations using Translate.vue.js and added a sample CSV to the |
Closes CatoTH#1138 This adds a scalable CSV user import tool directly to the Users admin interface. It parses the CSV in chunks asynchronously using Javascript and PHP's fseek, bypassing execution time limits for large files without needing a backend job queue.
58de097 to
f66e125
Compare
|
There were still some issues - but I could fix them in this Commit: cf4efb0 . I can either merge my MR, or you can cherry pick it if you want and then I can merge yours. If you want to add yourself to the AUTHORS file, go ahead. :) |
Closes #1138
Problem
Bulk adding users via the textarea form caps out quickly due to PHP max execution timeouts.
Solution
This PR introduces a robust CSV importer that chunks the upload from the frontend.
fseek()andfgetcsv().