With magento 2.0, I'm trying to save files to a precise directory.
Bascially, when I save a file (a txt file with references to images), I need to edit these references upon save to make the images relative to the txt position.
|-> file.txt (with references to ./tex/tex1.jpg)
$mediaDirectory = $this->filesystem->getDirectoryRead(DirectoryList::MEDIA);
$result = $uploader->save(
saves the file.txt into
How can I save my other files into
By the way, why does magento inserts this "i/p" stuff?
Thanks in advance...