|
@@ -35,7 +35,7 @@ |
|
|
block discarded – undo |
|
35
|
35
|
{ |
|
36
|
36
|
$fs = new Filesystem(); |
|
37
|
37
|
$finder = new Finder(); |
|
38
|
|
- foreach($finder->in(__DIR__ . '/gpx')->name('/\.gpx$/i') as $source) { |
|
|
38
|
+ foreach ($finder->in(__DIR__ . '/gpx')->name('/\.gpx$/i') as $source) { |
|
39
|
39
|
$targetPath = sys_get_temp_dir() . '/' . $source->getFilename(); |
|
40
|
40
|
$fs->copy($source->getPathname(), $targetPath); |
|
41
|
41
|
$uploadedFile = $this->uploadHelper->uploadGpxFile(new File($targetPath)); |
Please login to merge, or discard this patch.