29484ef033
Add finalize_upload endpoint that starts _background_process only after all file batches have been saved to disk. Fixes race where glob(*.csv) captured only first batch's files. - upload_csv: no longer starts thread, sets status='pending' - finalize_upload: validates dir, starts processing thread - upload.html: calls finalize after batch upload loop completes