mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fixes a bug with split file names during CSV import
This commit is contained in:
parent
77444ca28d
commit
db59e51c4a
@ -169,7 +169,7 @@ class CsvBulkLoader extends BulkLoader
|
||||
*/
|
||||
protected function getNewSplitFileName()
|
||||
{
|
||||
return TEMP_FOLDER . '/' . uniqid('SilverStripe\\Dev\\BulkLoader', true) . '.csv';
|
||||
return TEMP_FOLDER . DIRECTORY_SEPARATOR . uniqid(str_replace('\\', '_', static::class), true) . '.csv';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user