Open fthmhmt opened 7 years ago
I assume it's generating a third URL as that's a configuration option YOURLS has: my own experience is that if I try to add a link manually which had already been added via CSV import, YOURLS does not add it and warns me that it's already present in the database: check the setting of YOURLS_UNIQUE_URLS
in your user/config.php
file.
As for the last row added, that's a good idea but I'm unsure how to implement that. There's a few ways, I suppose. My preferred way would be to split the uploading and importing, so that perhaps 1. the CSV is uploaded to a temporary table, before 2. being imported and processed by YOURLS.
I'll add it to the to-do list, but if anyone wants to submit a PR, they're welcome.
Edit: if anyone has a CSV of several tens of thousands of rows of data in the correct format, post a link.
Last row state could be saved if timeout should be happen. The Upload is also running after window is closed without a timeout and importing urls double or more. Why not a multi Textfield for copy and paste and its running asynchron?
Edit: Its generating a third url if you visit the domain :(